home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Reference / the cmsp digests ('94-'97) / csmp digest Vol 4 No 024 < prev    next >
Text File  |  1996-11-19  |  96KB  |  2,847 lines

  1. C.S.M.P. Digest             Tue, 19 Nov 96       Volume 4 : Issue 24
  2.  
  3. Today's Topics:
  4.  
  5.         Amount ram for dev 8500?
  6.         AppleScript Commands
  7.         FindAllResIDsInFileGivenResourceType() ???
  8.         Floating Windoids in System 7.5
  9.         Help needed to create Mac files on a PC
  10.         Help!!! Welcome to Macintosh
  11.         Help: endian conversuin
  12.         How common is 512 x 342 max res?
  13.         ML for macintosh?
  14.         Q: how do I crop and then resave a PICT file?
  15.         ResEdit 'TMPL' question
  16.         Symantec C++ going away?
  17.         Texteditor needed w- AppleScript
  18.         Writing ioCompletion routine for Device Manager
  19.         [Q] Cross platform Development (Mac-Windows)...
  20.         [Q] Is there a function like GetDirContent()?
  21.         [Q] why can't I write a short?
  22.         displaying a pixmap on screen
  23.         resedit & PICT resources: help
  24.  
  25.  
  26.  
  27. The Comp.Sys.Mac.Programmer Digest is moderated by Mark Aiken
  28. (marka@ee.mcgill.ca).
  29.  
  30. The digest is a collection of article threads from the internet
  31. newsgroups comp.sys.mac.programmer.help, csmp.tools, csmp.misc and
  32. csmp.games. It is designed for people who read news semi-regularly and
  33. want an archive of the discussions.  If you don't know what a
  34. newsgroup is, you probably don't have access to it. Ask your systems
  35. administrator(s) for details. If you don't have access to news, you
  36. may still be able to post messages to the group by using a mail server
  37. like anon.penet.fi (mail help@anon.penet.fi for more information).
  38.  
  39. Each issue of the digest contains one or more sets of articles (called
  40. threads), with each set corresponding to a 'discussion' of a particular
  41. subject.  The articles are not edited; all articles included in this digest
  42. are in their original posted form (as received by our news server at
  43. ee.mcgill.ca).  Article threads are not added to the digest until the last
  44. article added to the thread is at least two weeks old (this is to ensure that
  45. the thread is dead before adding it to the digest).  Article threads that
  46. consist of only one message are generally not included in the digest.
  47.  
  48. The digests can be obtained by email, ftp or through the World Wide Web.
  49.  
  50. If you want to receive the digest by mail, send email to 
  51. majordomo@ee.mcgill.ca with no subject and one of the following commands
  52. as body:
  53.  
  54.     help                        Sends you a summary of commands
  55.     subscribe csmp                      Adds you to the mailing list
  56.     unsubscribe csmp                    Removes you from the list
  57.  
  58. Once you have subscribed, you will automatically receive each new
  59. issue as it is created.
  60.  
  61. Back issues are available by ftp from Info-Mac mirror sites in the
  62. per/csmp subdirectory, e.g.
  63.  
  64.   ftp://sumex-aim.stanford.edu/info-mac/per/csmp/
  65.  
  66. The contents of all back issues can be searched by accessing the
  67. following URL, courtesy of Andrew Barry (ajbarry@ozemail.com.au):
  68.  
  69.     http://marvin.stattech.com.au/search.html
  70.  
  71. They can also be searched through the following URLs, thanks to
  72. Tim Tuck (Tim.Tuck@sensei.com.au):
  73.  
  74.     http://wais.sensei.com.au/searchform.html
  75.     wais://wais.sensei.com.au:210/csmp?
  76.  
  77.  
  78. -------------------------------------------------------
  79.  
  80. >From David Scott <dscott@west.net>
  81. Subject: Amount ram for dev 8500?
  82. Date: Tue, 22 Oct 1996 13:53:52 +0000
  83. Organization: West.Net Communications
  84.  
  85. I just ordered a new 8500 and would like to get some suggestions about 
  86. the amount of ram to install.  I'll only be using this machine for 
  87. development purposes.
  88.  
  89. Thank you. 
  90. -- 
  91.  
  92. David Scott
  93. Santa Barbara
  94.  
  95.  
  96. +++++++++++++++++++++++++++
  97.  
  98. >From Online@MacTech.com ( nick.c @MT )
  99. Date: Thu, 24 Oct 1996 13:29:02 -0700
  100. Organization: MacTech Magazine
  101.  
  102.  
  103. In article <326CD1F0.49D@west.net>, dscott@west.net wrote:
  104.  
  105. >I just ordered a new 8500 and would like to get some suggestions about 
  106. >the amount of ram to install.  I'll only be using this machine for 
  107. >development purposes.
  108.  
  109.  
  110.    Off the top of my head, 32 MB should be comfortable.  You could
  111.      probably live with 24 MB, more is better.
  112.  
  113.  
  114.  
  115.  
  116. ____Nicholas C. DeMello, Ph.D.___________________________________________
  117. "MacTech Online"--MacTech Magazine, for Mac OS Programmers and Developers
  118.      http://www.MacTech.com/
  119.                                         _/   _/  _/  _/_/_/   _/   _/  
  120.    Chemistry: Nick@chem.UCLA.edu       _/_/ _/  _/  _/   _/  _/_/_/ 
  121.      MacTech: Online@MacTech.com      _/ _/_/  _/  _/       _/ _/    
  122.         http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/     
  123.  
  124. +++++++++++++++++++++++++++
  125.  
  126. >From gchapman@irus.rri.uwo.ca (Greg Chapman)
  127. Date: Thu, 24 Oct 1996 10:32:12 -0500
  128. Organization: Robarts Research Institute
  129.  
  130. In article <326CD1F0.49D@west.net>, dscott@west.net wrote:
  131.  
  132. > I just ordered a new 8500 and would like to get some suggestions about 
  133. > the amount of ram to install.  I'll only be using this machine for 
  134. > development purposes.
  135.  
  136. I have 96 MB...
  137.  
  138. But I program for medical imaging, so your milage may vary. :)
  139.  
  140. -- 
  141. Greg Chapman
  142. Mac Developer - Robarts Research Institute
  143. Imaging Research Labs
  144. - -
  145. "You! Out of the gene pool!"
  146.  
  147. +++++++++++++++++++++++++++
  148.  
  149. >From doverton@iglou.com (Dave Overton)
  150. Date: 24 Oct 1996 13:02:05 GMT
  151. Organization: NETCOM Network Operations
  152.  
  153.  
  154. I have 48 MBytes in a Power Computing box and am just as happy as a clam.
  155. Dave Overton
  156.  
  157.  
  158. In article <326CD1F0.49D@west.net>, dscott@west.net wrote:
  159.  
  160. > I just ordered a new 8500 and would like to get some suggestions about 
  161. > the amount of ram to install.  I'll only be using this machine for 
  162. > development purposes.
  163. > Thank you. 
  164. > -- 
  165. > David Scott
  166. > Santa Barbara
  167.  
  168. +++++++++++++++++++++++++++
  169.  
  170. >From han@lava.net (Byron Han)
  171. Date: 25 Oct 1996 08:58:03 -1000
  172. Organization: LavaNet, Inc.
  173.  
  174. For me and my 9500, I give CodeWarrior 5 meg, MPW 10 meg, Netscape 3 meg,
  175. Apple Telecom 5 meg, OpenDoc ... I have 48 meg and am a bit cramped.
  176. Probably 64 meg or more is nice and roomy.  If you want to do any
  177. serious QuickTime/QuickTime VR authoring, you will want 96 meg to be
  178. nice and speedy.  With large amounts of RAM, it is also possible to
  179. create a big RAM-disk where temp files for builds can be placed (in MPW)_
  180. which can REALLY speed up builds.  YMMV.
  181.  
  182.  
  183. -- 
  184. Byron Han  *  <http://www.hanchenson.com/~han>  *  <mailto:han@hanchenson.com>
  185. Han Chen & Son - MacOS Software Development * PO Box 61557 * Honolulu HI 96839
  186. "Windows 95 - Can't Get No Satisfaction"
  187.  
  188. +++++++++++++++++++++++++++
  189.  
  190. >From smfr@santafe.edu (Simon Fraser)
  191. Date: 4 Nov 1996 21:13:57 GMT
  192. Organization: Santa Fe Institute
  193.  
  194. In article <ucs-ya023180000411961029460001@199.2.194.10>, dscott@west.net wrote:
  195.  
  196. >24 Megs at minimum. Forget using RAM Doubler if you're trying to debug
  197. >anything other than applications that do not patch the OS. Its not worth
  198. >the trouble.
  199.  
  200. I would say that 32Mb is minimum. Some debugging tools require VM
  201. and / or Ram Doubler to be off, which, if you are doing Speech Recog
  202. or something, puts the System heap at around the 12MB mark. Then have
  203. open your compiler, debugger, Netscape (to browse Inside Mac online),
  204. and ResEdit, and you've run out.
  205.  
  206. BTW, I code and debug with RD installed with no problems. Just turn
  207. it off to find those really pesky bugs with the serious debugging tools!
  208.  
  209. Simon
  210.  
  211. +++++++++++++++++++++++++++
  212.  
  213. >From ucs@europa.com (ucs)
  214. Date: Mon, 04 Nov 1996 10:29:46 -0800
  215. Organization: Universal Computing Systems
  216.  
  217. 24 Megs at minimum. Forget using RAM Doubler if you're trying to debug
  218. anything other than applications that do not patch the OS. Its not worth
  219. the trouble.
  220.  
  221. My rec. for memory is is along the lines of 1950's consumerism- more is better.
  222.  
  223. -- 
  224. Saying Dole is Better Than Clinton is no different that saying the Son of
  225. Sam is better than the Hillside Strangler.
  226.  
  227. +++++++++++++++++++++++++++
  228.  
  229. >From "Thomas L. Ferrell" <ferrelltl@ornl.gov>
  230. Date: 5 Nov 1996 02:31:13 GMT
  231. Organization: Oak Ridge National Lab
  232.  
  233. I use every bit of 48 Mb of RAM since I have a lot of image processing 
  234. going on in my programming. This is for scientific work,but might be 
  235. important for games also--it just depends on your own needs,but as cheap 
  236. as RAM is, I see no need to minimize on such an important enhancement.
  237. tom
  238.  
  239.  
  240.  
  241. ---------------------------
  242.  
  243. >From cokin@primenet.com (Darren Cokin)
  244. Subject: AppleScript Commands
  245. Date: 4 Nov 1996 19:39:04 -0700
  246. Organization: Primenet Services for the Internet
  247.  
  248. I'm trying to accomplish a lofty automation task, mostly in MiniPascal,
  249. MiniCad's internal programming/scripting language.  That all works just
  250. fine.  But for some of what I want to do, I need AppleScript, but I can't
  251. find any documentation, and I'm in kind of a hurry here.  What I want to
  252. do isn't really all that complex either.
  253.  
  254. I figured out how to "tell" MiniCad to open a certain file, signal it to
  255. make the necessary changes, and even to send a "Print..." command.  But
  256. not how to print 1 copy, or to close the file without saving changes.
  257.  
  258. "Print..." opens a dialog box, asking for the user to enter the number of
  259. copies.  The goal is to print a large number of files automatically, we
  260. don't want to have to hit return every minute or so for 3 hours as this
  261. thing runs.  Is there a print 1 copy command, or a way to tell it to hit
  262. "Ok" as soon as the print dialog comes up?  What about closing the file,
  263. without saving changes?
  264.  
  265. Anyone who could either tell me the commands and proper syntax I need, or
  266. point me to an online reference source, would be most appreciated. 
  267. Thanks!
  268.  
  269.  
  270.                                                         Darren
  271.  
  272. +++++++++++++++++++++++++++
  273.  
  274. >From peter@jlist.com (Peter Payne)
  275. Date: Wed, 6 Nov 1996 02:28:40 +0900
  276. Organization: Lobo Net
  277.  
  278. > Anyone who could either tell me the commands and proper syntax I need, or
  279. > point me to an online reference source, would be most appreciated. 
  280. > Thanks!
  281. >
  282.  
  283. Try 
  284.  
  285. http://www.latenightsw.com/scripting.html
  286.  
  287. for some links. I would like a whole list of Applescript's commands
  288. myself, but I couldn't find one.
  289.  
  290.  
  291. *J-LIST* www.jlist.com Japanese      | *SAKURA SOFT* www.sakurasoft.com
  292. adult magazines, CD ROM, videos,     | Interactive Japanese adult
  293. Japanese pop music (JPOP), software, | fantasies for your PC. The best
  294. much more. OVER 18 ONLY!!            | from Japan to you. OVER 18 ONLY!!
  295.  
  296. +++++++++++++++++++++++++++
  297.  
  298. >From jimbarnes@gulf.net (Jim Barnes)
  299. Date: Wed, 06 Nov 1996 22:34:19 -0600
  300. Organization: Mostly none.
  301.  
  302. In article <19961106022840398981@[202.230.39.208]>, peter@jlist.com (Peter
  303. Payne) wrote:
  304.  
  305. >> Anyone who could either tell me the commands and proper syntax I need, or
  306. >> point me to an online reference source, would be most appreciated. 
  307. >> Thanks!
  308. >
  309. >Try 
  310. >
  311. >http://www.latenightsw.com/scripting.html
  312. >
  313. >for some links. I would like a whole list of Applescript's commands
  314. >myself, but I couldn't find one.
  315. >
  316. You probably can't find a complete list since the commands are all built
  317. into each application that supports AppleScript. Danny Goodman's
  318. _Applescript Handbook_ is probably the closest thing I know to a list of
  319. commands. 
  320.  
  321. There is a Required Suite of commands that each scriptable application
  322. must support which contains the open print quit and run commands. This
  323. print command *only* does exactly what selecting a file in the Finder and
  324. choosing the Print command.
  325.  
  326. To get more functionality, the application must provide it. To find out
  327. what commands an application supports, select "Open Dictionary..." from
  328. the Script Editor's File menu and find the application. The list of
  329. commands is broken down into groups or "Suites," which lists the syntax
  330. for each command. Most of the time I find it difficult to understand
  331. exactly how to use each command because there is no example listed with
  332. the commands.
  333.  
  334. Hope that helps,
  335.  
  336. -- 
  337. - -
  338. Jim Barnes -- jimbarnes@gulf.net
  339.  
  340. ---------------------------
  341.  
  342. >From heller@cs.umass.edu (Robert Heller)
  343. Subject: FindAllResIDsInFileGivenResourceType() ???
  344. Date: 4 Nov 1996 11:03:49 GMT
  345. Organization: CMPSCI Department, UMass Amherst
  346.  
  347. I need to collect all of the in use resource IDs for a given resource
  348. type in the resource fork of a file.  The "brute force" method:
  349.  
  350.     short curResFile = CurResFile();
  351.         UseResFile(refNum);
  352.         for (int ires = 0; ires < 32768; ires++)
  353.         {
  354.                 Cell aCell;
  355.                 Handle resource = Get1Resource(LabelTemplate::labelResourceType$
  356.                 if (resource == NULL) continue;
  357.                 Size s = GetHandleSize(resource);
  358.                 DetachResource(resource);
  359.                 DisposeHandle(resource);
  360.         /* some processing */
  361.         }
  362.         UseResFile(curResFile);
  363.  
  364. is obviously not the solution.  There does not appear to be a function
  365. that returns this information, at not that I can find.  ResEdit (and
  366. DeRez) obviously can do this, but what is the magic?
  367.  
  368.  
  369.                                                                                                  
  370. -- 
  371.                                      \/
  372. Robert Heller                        ||InterNet:   Heller@CS.UMass.EDU
  373. http://vis-www.cs.umass.edu/~heller  ||FidoNet:    1:321/153
  374. http://netmar.com/mall/shops/heller  /\
  375.  
  376. +++++++++++++++++++++++++++
  377.  
  378. >From bilewicz@helf4.physik.fu-berlin.de (Roger Bilewicz)
  379. Date: 4 Nov 96 13:05:47 GMT
  380. Organization: Freie Universitaet Berlin
  381.  
  382. heller@cs.umass.edu (Robert Heller) writes:
  383.  
  384. >I need to collect all of the in use resource IDs for a given resource
  385. >type in the resource fork of a file.  The "brute force" method:
  386.  
  387. >    short curResFile = CurResFile();
  388. >        UseResFile(refNum);
  389. >        for (int ires = 0; ires < 32768; ires++)
  390. >        {
  391. >                Cell aCell;
  392. >                Handle resource = Get1Resource(LabelTemplate::labelResourceType$
  393. >                if (resource == NULL) continue;
  394. >                Size s = GetHandleSize(resource);
  395. >                DetachResource(resource);
  396. >                DisposeHandle(resource);
  397. >        /* some processing */
  398. >        }
  399. >        UseResFile(curResFile);
  400.  
  401. >is obviously not the solution.  There does not appear to be a function
  402. >that returns this information, at not that I can find.  ResEdit (and
  403. >DeRez) obviously can do this, but what is the magic?
  404.  
  405. Robert,
  406.  
  407. you can use CountResources / Count1Resources to get the number of
  408. resources of a given type and then call GetIndResource / Get1IndResource
  409. in a for-loop to read the resources by index.
  410. These routines are documented in Inside Macintosh: More Macintosh Toolbox.
  411.  
  412. May it help,
  413. Roger
  414.  
  415.  
  416. +++++++++++++++++++++++++++
  417.  
  418. >From magao@zip.com.au (Timothy C. Delaney)
  419. Date: Tue, 05 Nov 1996 08:26:19 +1100
  420. Organization: The Zipsters
  421.  
  422. In article <55kiil$ic3@kernighan.cs.umass.edu>, heller@cs.umass.edu (Robert
  423. Heller) wrote:
  424.  
  425. > I need to collect all of the in use resource IDs for a given resource
  426. > type in the resource fork of a file.  The "brute force" method:
  427.  
  428. Look for Count1Resources() and GetResInfo().
  429.  
  430.     short   numResources    = Count1Resources('????');
  431.     Handle  h;
  432.     short   rsrcID,
  433.     ResType rsrcType;
  434.     Str255  rsrcName;
  435.     short   index;
  436.  
  437.     SetResLoad(false);
  438.  
  439.     for (index = 1; index <= numResources; index++)
  440.     {
  441.         h = Get1IndResource('????', index);
  442.         GetResInfo(h, &rsrcID, &rsrcType, rsrcName);
  443.  
  444.         /* do processing */
  445.     }
  446.  
  447.     SetResLoad(true);
  448.  
  449. Two things to note:
  450.  
  451.     The index starts at one (1), not zero (0).
  452.  
  453.     By calling SetResLoad(false) the resource is not actually loaded into
  454.     memory - you only get a non-empty handle if it's already in memory. This
  455.     cuts down on the time taken.
  456.  
  457. -- 
  458. <http://www.zip.com.au/~magao/standard_disclaimer.html>
  459.  
  460.                                        _/_/_/_/
  461.    __|  __|        _/_|     _/_/_/      _/_|     _/_/_/
  462.   _/_| _/_|      _/  _|   _/          _/  _|   _/    _/
  463.  -/ _|_/ _|    _/_/_/_|  _/ _/_/_/  _/_/_/_|  _/    _/
  464. _/  __/  _|  _/      _|  _/_/_/   _/      _|  _/_/_/
  465.  
  466. Tim Delaney                             magao@zip.com.au
  467.   Mac/Windows SW Engineer, Bold        magao@bold.com.au
  468.  
  469. ---------------------------
  470.  
  471. >From hooty@odyssee.net (Eric Dorland)
  472. Subject: Floating Windoids in System 7.5
  473. Date: Fri, 01 Nov 1996 22:23:06 -0400
  474. Organization: Odyssee Internet
  475.  
  476. Is there any technote or some piece of documentation on the floating
  477. windoid capability in System 7.5?
  478.  
  479. Eric Dorland
  480. hooty@odyssee.net
  481. http://www.odyssee.net/~hooty/
  482.  
  483. +++++++++++++++++++++++++++
  484.  
  485. >From blob@ricochet.net
  486. Date: Sat, 02 Nov 1996 11:22:53 -0800
  487. Organization: (none)
  488.  
  489. In article <hooty-0111962223060001@news.odyssee.net>, hooty@odyssee.net
  490. (Eric Dorland) wrote:
  491.  
  492. > Is there any technote or some piece of documentation on the floating
  493. > windoid capability in System 7.5?
  494.  
  495. No.  You're better off using the Infinity Windoid, available from any
  496. info-mac archive such as <ftp://mirror.apple.com/mirrors/info-mac/dev/>
  497.  
  498. -- 
  499. (Pointers to other Mac programming web sites at
  500. <http://devworld.apple.com/dev/geeks.html>)
  501.  
  502. +++++++++++++++++++++++++++
  503.  
  504. >From Steve Makohin <WaterEdgSW@aol.com>
  505. Date: 2 Nov 1996 22:17:04 GMT
  506. Organization: Water's Edge Software
  507.  
  508. In article <hooty-0111962223060001@news.odyssee.net> Eric Dorland,
  509. hooty@odyssee.net writes:
  510. >Subject: Floating Windoids in System 7.5
  511. >From: Eric Dorland, hooty@odyssee.net
  512. >Date: Fri, 01 Nov 1996 22:23:06 -0400
  513. >>Is there any technote or some piece of documentation on the floating
  514. >windoid capability in System 7.5?
  515.  
  516. Only floating palette WDEF is included with System 7.5, that is you get
  517. the _look_, but not the behavior of a floating palette. If your app will
  518. run only on System 7.5 or later, you have a start, otherwise you'll need
  519. to get a floating palette WDEF for pre-System 7.5 apps. The Infinity WDEF
  520. is a good selection.
  521.  
  522. You have several options to make the window _behave_ like a floating
  523. palette:
  524.   1. Use a class in Symantec's TCL
  525.   2. Use a class in Metowerks' PowerPlant
  526.   3. Use Tools Plus application development libraries
  527.   4. Roll your own code (not a good option)
  528.   5. Wait for MacOS 8
  529.  
  530. BTW, you can get a free evaluation kit of our Tools Plus libraries at our
  531. web site, or just take an illustrated Tools Plus Guided Tour. Tools Plus
  532. lets you create any *working* GUI element with 1 line code, including
  533. tool bars, picture buttons, pop-up menus, etc. It also makes dialogs and
  534. menus work with a single line of code. Rate 4 stars by Macworld magazine.
  535.  
  536. -Steve Makohin
  537.  Water's Edge Software
  538. (Makers of Tools Plus & SuperCDEFs)
  539.  http://www.interlog.com/~wateredg
  540.  
  541. +++++++++++++++++++++++++++
  542.  
  543. >From dkj@apple.com (Dave Johnson)
  544. Date: Wed, 06 Nov 1996 11:49:25 -0800
  545. Organization: Apple Computer, Inc.
  546.  
  547. In article <55gh90$q17@news.interlog.com>, Steve Makohin
  548. <WaterEdgSW@aol.com> wrote:
  549.  
  550. > In article <hooty-0111962223060001@news.odyssee.net> Eric Dorland,
  551. > hooty@odyssee.net writes:
  552. > >Subject: Floating Windoids in System 7.5
  553. > >From: Eric Dorland, hooty@odyssee.net
  554. > >Date: Fri, 01 Nov 1996 22:23:06 -0400
  555. > >>Is there any technote or some piece of documentation on the floating
  556. > >windoid capability in System 7.5?
  557. > Only floating palette WDEF is included with System 7.5, that is you get
  558. > the _look_, but not the behavior of a floating palette. If your app will
  559. > run only on System 7.5 or later, you have a start, otherwise you'll need
  560. > to get a floating palette WDEF for pre-System 7.5 apps. The Infinity WDEF
  561. > is a good selection.
  562. > You have several options to make the window _behave_ like a floating
  563. > palette:
  564. >   1. Use a class in Symantec's TCL
  565. >   2. Use a class in Metowerks' PowerPlant
  566. >   3. Use Tools Plus application development libraries
  567. >   4. Roll your own code (not a good option)
  568. >   5. Wait for MacOS 8
  569.  
  570. <snip>
  571.  
  572. There are two other floaters libraries he doesn't mention: one from
  573. develop magazine issue 15, code rewritten a year or wo ago and now pretty
  574. solid, and one from MacTech magazine as well.
  575.  
  576. Dave Johnson
  577.  
  578. ---------------------------
  579.  
  580. >From "Marcus Mac Innes" <mmacinnes@vicorp.co.uk>
  581. Subject: Help needed to create Mac files on a PC
  582. Date: Fri, 04 Oct 1996 19:23:57 GMT
  583. Organization: Vicorp UK
  584.  
  585. Hi there...
  586.  
  587. I'm currently running a PC system and have a need to send files to a Mac
  588. using zmodem... I didn't reaslise that the Mac needs an 'extra' little bit
  589. called the resource fork. To make matters worse, I don't have access to any
  590. of the Macintosh machines I'm sending files to... 
  591.  
  592. Does anyone know how I can create a graphic file using Photoshop on a PC
  593. and 'alter' it in some way to so that I can send it to a Mac, WITHOUT
  594. having to alter the file on the Mac itself (i.e. using resedit...)
  595.  
  596. It's really important that users on the Mac don't have to perform any
  597. alterations to the file once they receive it. IT MUST look like it was
  598. created on another Mac!
  599.  
  600. There has to be a little utility to do the job.
  601.  
  602. Anyone know if one exists....?
  603.  
  604. -- 
  605. Regards,
  606.  
  607. Marcus Mac Innes
  608.  
  609. (Please e-mail any reponse.... Thank You...)
  610.  
  611. +++++++++++++++++++++++++++
  612.  
  613. >From nyamuk2@ix.netcom.com (HERO)
  614. Date: Thu, 03 Oct 1996 18:26:57 -0800
  615. Organization: HANUMAN EROS PT
  616.  
  617.  
  618.  
  619. Global village has just introduced a communications application for the
  620. purpose you describe got to their website at: http://www.globalvillage.com
  621.  
  622. In article <01bbb229$59e984e0$c70cdec2@vicorp.demon.co.uk>, "Marcus Mac
  623. Innes" <mmacinnes@vicorp.co.uk> wrote:
  624.  
  625. > Hi there...
  626. > I'm currently running a PC system and have a need to send files to a Mac
  627. > using zmodem... I didn't reaslise that the Mac needs an 'extra' little bit
  628. > called the resource fork. To make matters worse, I don't have access to any
  629. > of the Macintosh machines I'm sending files to... 
  630. > Does anyone know how I can create a graphic file using Photoshop on a PC
  631. > and 'alter' it in some way to so that I can send it to a Mac, WITHOUT
  632. > having to alter the file on the Mac itself (i.e. using resedit...)
  633. > It's really important that users on the Mac don't have to perform any
  634. > alterations to the file once they receive it. IT MUST look like it was
  635. > created on another Mac!
  636. > There has to be a little utility to do the job.
  637. > Anyone know if one exists....?
  638.  
  639.  
  640. > -- 
  641. > Regards,
  642. > Marcus Mac Innes
  643. > (Please e-mail any reponse.... Thank You...)
  644.  
  645. +++++++++++++++++++++++++++
  646.  
  647. >From cougar@west.net (Cougar)
  648. Date: Mon, 07 Oct 1996 06:21:21 -0800
  649. Organization: West.Net Communications
  650.  
  651. In article <01bbb229$59e984e0$c70cdec2@vicorp.demon.co.uk>, "Marcus Mac
  652. Innes" <mmacinnes@vicorp.co.uk> wrote:
  653.  
  654. > Hi there...
  655. > I'm currently running a PC system and have a need to send files to a Mac
  656. > using zmodem... I didn't reaslise that the Mac needs an 'extra' little bit
  657. > called the resource fork. To make matters worse, I don't have access to any
  658. > of the Macintosh machines I'm sending files to... 
  659. > Does anyone know how I can create a graphic file using Photoshop on a PC
  660. > and 'alter' it in some way to so that I can send it to a Mac, WITHOUT
  661. > having to alter the file on the Mac itself (i.e. using resedit...)
  662. > It's really important that users on the Mac don't have to perform any
  663. > alterations to the file once they receive it. IT MUST look like it was
  664. > created on another Mac!
  665. > There has to be a little utility to do the job.
  666.  
  667. You could try GlobalTransfer by Global Village.
  668.  
  669. -- 
  670. http://www.west.net/~cougar
  671.  
  672. +++++++++++++++++++++++++++
  673.  
  674. >From george@mech.seas.upenn.edu ( George Jefferson )
  675. Date: 7 Oct 1996 19:31:43 GMT
  676. Organization: Mechanical Engineering
  677.  
  678. :I'm currently running a PC system and have a need to send files to a Mac
  679. :using zmodem... I didn't reaslise that the Mac needs an 'extra' little bit
  680. :called the resource fork. To make matters worse, I don't have access to any
  681. :of the Macintosh machines I'm sending files to... 
  682.  
  683. One way (easiest i think) is to do a raw binary transfer and
  684. setup zterm on the mac to set the file type correctly,
  685. thats all. There should be no resource fork to your graphics
  686. files.  If you really have no acess to the mac you have a tough
  687. problem - if the user cant set the type how do you know he
  688. doesn't have it in text mode for that matter.
  689.  
  690. Another way, maybe easier for the mac user, is to do a macbinary
  691. transfer. Then on the pc end you need to prepend the macbinary
  692. header to the graphic file before sending.  I'd be suprised if
  693. there isn't a little dos utility to do that (hunt your favorite
  694. archive)
  695.  
  696.  
  697.  
  698.  
  699. +++++++++++++++++++++++++++
  700.  
  701. >From mogge@eulines.hv.se (Morgan Ericsson)
  702. Date: 7 Oct 1996 20:58:12 GMT
  703. Organization: Solace Computer Society, Sundsvall
  704.  
  705. When will all you mac users understand that comp.os.mach isn't about macs? I
  706. mean, why on earth do you think it's called mach? And the fact that other
  707. mac groups are called comp.sys.mac.something, should make you think twice
  708. before posting in a comp.os.something group.
  709.  
  710. (For all the people who still don't get it. Mach is a microkernel. Sure
  711. there are ports of mach for macs (mklinux etc), but that doesn't mean that
  712. we want stupid macintosh questions here...)
  713.  
  714. - -
  715. Morgan Ericsson, LINES Project 
  716. Dept. of Mathematics, Statistics and Computer Science
  717. Vaxjo University
  718.  
  719.  
  720.  
  721.  
  722.  
  723. +++++++++++++++++++++++++++
  724.  
  725. >From RCS@Backdoor.com (Russell Seymour)
  726. Date: 8 Oct 96 06:47:39 GMT
  727. Organization: The Denver Exchange, Inc. - http://www.tde.com/
  728.  
  729. In article <cougar-0710960621210001@term1-21.sb.west.net>, cougar@west.net
  730. (Cougar) wrote:
  731.  
  732. ->In article <01bbb229$59e984e0$c70cdec2@vicorp.demon.co.uk>, "Marcus Mac
  733. ->Innes" <mmacinnes@vicorp.co.uk> wrote:
  734. -> 
  735. ->> Does anyone know how I can create a graphic file using Photoshop on a PC
  736. ->> and 'alter' it in some way to so that I can send it to a Mac, WITHOUT
  737. ->> having to alter the file on the Mac itself (i.e. using resedit...)
  738. ->> 
  739. -
  740. I am not familiar with Photoshop, but they may have a SAVE AS.... option
  741. to save it as a MAC file.  MS-WORD for Windows has this option to save the
  742. WORD file in several WORD versions for the MAC from 4.0 to 5.1....
  743.  
  744. +++++++++++++++++++++++++++
  745.  
  746. >From psyc394@csc.canterbury.ac.nz (Michael R. MacAskill)
  747. Date: Fri, 18 Oct 1996 16:43:16 +1200
  748. Organization: Christchurch Hospital / University of Otago
  749.  
  750.  
  751. > -> 
  752. > ->> Does anyone know how I can create a graphic file using Photoshop on a PC
  753. > ->> and 'alter' it in some way to so that I can send it to a Mac, WITHOUT
  754. > ->> having to alter the file on the Mac itself (i.e. using resedit...)
  755.  
  756. Don't make things to hard for yourself.  Don't send it as a Photoshop
  757. file, but as one of the standard graphic formats (Tiff, bmp, etc) which
  758. the Mac Photoshop will quite happily open without needing a resource fork.
  759.  
  760. > -
  761. > I am not familiar with Photoshop, but they may have a SAVE AS.... option
  762. > to save it as a MAC file.  MS-WORD for Windows has this option to save the
  763. > WORD file in several WORD versions for the MAC from 4.0 to 5.1....
  764.  
  765. Word 6.0 files are able to be read between the Mac and PC platforms
  766. without any translation
  767.  
  768. Mike
  769.  
  770. \\ Michael R. MacAskill      \\                     \\
  771.  \\ Department of Medicine    \\ Ph: +64 3 3640 640  \\                     
  772.   \\ Christchurch Hospital     \\ ext 88138 or 88206  \\                        
  773.    \\ Private Bag 4710          \\ Fax: +64 3 3640 935 \\                    
  774.     \\ CHRISTCHURCH, NEW ZEALAND \\                     \\
  775.  
  776. +++++++++++++++++++++++++++
  777.  
  778. >From northwind@earthlink.net (Karsten Jeppesen)
  779. Date: Sun, 20 Oct 1996 05:29:36 GMT
  780. Organization: Earthlink Network, Inc.
  781.  
  782. psyc394@csc.canterbury.ac.nz (Michael R. MacAskill) wrote:
  783.  
  784. >
  785. >> -> 
  786. >> ->> Does anyone know how I can create a graphic file using Photoshop on a PC
  787. >> ->> and 'alter' it in some way to so that I can send it to a Mac, WITHOUT
  788. >> ->> having to alter the file on the Mac itself (i.e. using resedit...)
  789. >
  790. >Don't make things to hard for yourself.  Don't send it as a Photoshop
  791. >file, but as one of the standard graphic formats (Tiff, bmp, etc) which
  792. >the Mac Photoshop will quite happily open without needing a resource fork.
  793.  
  794. AND remember that EPS although it exists on both platforms are
  795. different in structure. There are programs that will convert but you
  796. usually looses the preview.
  797. Nice answer by the way.
  798. >
  799. >> -
  800. >> I am not familiar with Photoshop, but they may have a SAVE AS.... option
  801. >> to save it as a MAC file.  MS-WORD for Windows has this option to save the
  802. >> WORD file in several WORD versions for the MAC from 4.0 to 5.1....
  803. >
  804. >Word 6.0 files are able to be read between the Mac and PC platforms
  805. >without any translation
  806. >
  807. >Mike
  808. >
  809. >\\ Michael R. MacAskill      \\                     \\
  810. > \\ Department of Medicine    \\ Ph: +64 3 3640 640  \\                     
  811. >  \\ Christchurch Hospital     \\ ext 88138 or 88206  \\                        
  812. >   \\ Private Bag 4710          \\ Fax: +64 3 3640 935 \\                    
  813. >    \\ CHRISTCHURCH, NEW ZEALAND \\                     \\
  814.  
  815.  
  816. +++++++++++++++++++++++++++
  817.  
  818. >From "Victor J. Spadaro" <vspadaro@jdv.net>
  819. Date: Fri, 25 Oct 1996 02:54:28 -0500
  820. Organization: JDV Enterprises, Inc.
  821.  
  822. Save it as filename.gif then copy it to a floppy then insert the pc disk
  823. into the mac and copy it to the hard drive and then open it in photoshop
  824. for the mac. Simple do it all the time
  825. -- 
  826. **********************************************************************
  827. Send E-Mail to:
  828. mailto:vspadaro@jdv.net
  829.  
  830. http://www.jdv.net
  831.  
  832. Victor J. Spadaro
  833. Executive Vice-President
  834. JDV Enterprises, Inc.
  835. 709 13th Ave. So.
  836. Clinton, IA. 52732 USA
  837. (319) 243-6782 Voice
  838. (319) 243-6683 Fax
  839.  
  840. NOTICE: I DO NOT ACCEPT UNSOLICITED COMMERCIAL EMAIL MESSAGES OF ANY
  841. KIND.  I
  842. CONSIDER SUCH MESSAGES PERSONAL HARRASSMENT AND A GROSS INVASION OF MY
  843. PRIVACY.  By sending unsolicited commercial advertising/solicitations
  844. (or
  845. otherwise on or as part of a mailing list) to me via e-mail you will be
  846. indicating your consent to paying Victor J. Spadaro $1,000.00
  847. U.S.D./hour
  848. for a minimum of 1 hour for my time spent dealing with it. Payment due
  849. in 30
  850. days upon receipt of an invoice (e-mail or regular mail) from me or my
  851. authorized representative.
  852. **********************************************************************
  853.  
  854. +++++++++++++++++++++++++++
  855.  
  856. >From "gmac63" <perigee.net>
  857. Date: Sun, 27 Oct 1996 00:26:50 -0500
  858. Organization: Zippo
  859.  
  860. In article <psyc394-1810961643160001@news.canterbury.ac.nz>,
  861. psyc394@csc.canterbury.ac.nz (Michael R. MacAskill) wrote:
  862.  
  863. >Don't make things to hard for yourself.  Don't send it as a Photoshop
  864. >file, but as one of the standard graphic formats (Tiff, bmp, etc) which
  865. >the Mac Photoshop will quite happily open without needing a resource fork.
  866. >
  867. I didn't think Photoshop had a problem with it's own format cross-platform.
  868. i can see where the resource fork can be an issue in files such as .eps
  869. or.qxd, but Photoshop?!?  could it be that the inquirer is trying to copy a
  870. file from the PC to a Mac via floppy? this can confuse the app of the Mac
  871. into beleiveing that the file is just a "document". I have copied
  872. Illustrator files in this manner and have used the .ai . Illustrator will
  873. not see them as Illustrator files because they don't have the type and
  874. creator. 
  875.  
  876. However I can agree with you though, that the use of tiffs pr bmps may be
  877. the best because I have had photoshop launch when double-clicked on. 
  878.  
  879. PC Exchange may be helpful here also. It can be configured to recognize the
  880. files by their extensions and rebuild their resource forks.
  881.  
  882. Wes Yates - gmac63@perigee.net
  883.  
  884. +++++++++++++++++++++++++++
  885.  
  886. >From thuerman@ibr.cs.tu-bs.de (Urs Thuermann)
  887. Date: 28 Oct 1996 10:26:09 +0100
  888. Organization: TU Braunschweig, Informatik (Bueltenweg), Germany
  889.  
  890. In article <32707207.387E@jdv.net> "Victor J. Spadaro"
  891. <vspadaro@jdv.net> writes:
  892.  
  893. > Save it as filename.gif then copy it to a floppy then insert the pc disk
  894. > into the mac and copy it to the hard drive and then open it in photoshop
  895. > for the mac. Simple do it all the time
  896.  
  897. Please remove comp.os.mach from the newsgroup line when following up
  898. to this thread.  This is *NOT* a Macintosh group.
  899.  
  900. urs
  901.  
  902. +++++++++++++++++++++++++++
  903.  
  904. >From thuerman@ibr.cs.tu-bs.de (Urs Thuermann)
  905. Date: 28 Oct 1996 10:39:53 +0100
  906. Organization: TU Braunschweig, Informatik (Bueltenweg), Germany
  907.  
  908. In article <perigee.net-2710960026500001@206.229.254.97>
  909. "gmac63" <perigee.net> writes:
  910.  
  911. > I didn't think Photoshop had a problem with it's own format cross-platform.
  912. > i can see where the resource fork can be an issue in files such as .eps
  913. > or.qxd, but Photoshop?!?  could it be that the inquirer is trying to copy a
  914. > file from the PC to a Mac via floppy? this can confuse the app of the Mac
  915. > into beleiveing that the file is just a "document". I have copied
  916. > Illustrator files in this manner and have used the .ai . Illustrator will
  917. > not see them as Illustrator files because they don't have the type and
  918. > creator. 
  919.  
  920. Please remove comp.os.mach from the newsgroup line when following up
  921. to this thread.  This is *NOT* a Macintosh group.
  922.  
  923. urs
  924.  
  925. +++++++++++++++++++++++++++
  926.  
  927. >From brianl@media4.com (Brian Landwehr)
  928. Date: Wed, 06 Nov 1996 04:06:05 GMT
  929. Organization: Media4 Productions Inc.
  930.  
  931. MacDrive 95 will allow you to read and write nearly any kind of
  932. Mac-format disk from Windows 95 and all software that runs under
  933. Windows 95.  It automatically generates file name extensions based on
  934. type & creator when listing Mac files under Windows 95, and
  935. automatically assigns type and creator based on file name extension
  936. when Windows 95 software creates a file on a Mac disk.
  937.  
  938. For more information, email media4@media4.com or go to
  939. http://www.media4.com.
  940.  
  941. Brian Landwehr
  942. Media4 Productions Inc.
  943.  
  944.  
  945. thuerman@ibr.cs.tu-bs.de (Urs Thuermann) wrote:
  946.  
  947. >In article <perigee.net-2710960026500001@206.229.254.97>
  948. >"gmac63" <perigee.net> writes:
  949.  
  950. >> I didn't think Photoshop had a problem with it's own format cross-platform.
  951. >> i can see where the resource fork can be an issue in files such as .eps
  952. >> or.qxd, but Photoshop?!?  could it be that the inquirer is trying to copy a
  953. >> file from the PC to a Mac via floppy? this can confuse the app of the Mac
  954. >> into beleiveing that the file is just a "document". I have copied
  955. >> Illustrator files in this manner and have used the .ai . Illustrator will
  956. >> not see them as Illustrator files because they don't have the type and
  957. >> creator. 
  958.  
  959. >Please remove comp.os.mach from the newsgroup line when following up
  960. >to this thread.  This is *NOT* a Macintosh group.
  961.  
  962. >urs
  963.  
  964.  
  965.  
  966. ---------------------------
  967.  
  968. >From <JJACQU51@MAINE.MAINE.EDU>
  969. Subject: Help!!! Welcome to Macintosh
  970. Date: Tue, 29 Oct 1996 19:58:58 EST
  971. Organization: University of Maine System
  972.  
  973. HI there, I have never really done any Mac programming but I would like to chan
  974. ge the "welcome to Macintosh. Connectix Ram Doubler" opening box at startup to
  975. a customized message..... can someone help me... or send advice, Thanks
  976. jjacqu51@maine.maine.edu
  977.  
  978. +++++++++++++++++++++++++++
  979.  
  980. >From stian@mail.utexas.edu (Stian Oksavik)
  981. Date: 3 Nov 1996 07:31:23 GMT
  982. Organization: University of Texas at Austin
  983.  
  984. In article <microcsm-0211960147060001@news.goldinc.com>,
  985. microcsm@goldinc.com (David Blache) wrote:
  986.  
  987.  > In article <96303.195858JJACQU51@MAINE.MAINE.EDU>,
  988.  > <JJACQU51@MAINE.MAINE.EDU> wrote:
  989.  > 
  990.  > > HI there, I have never really done any Mac programming but I would like
  991.  > to chan
  992.  > > ge the "welcome to Macintosh. Connectix Ram Doubler" opening box at
  993. startup to
  994.  > > a customized message..... can someone help me... or send advice, Thanks
  995.  > > jjacqu51@maine.maine.edu
  996.  > 
  997.  > The "Welcome to Macintosh" message is stored in one of the STR or STR#
  998.  > resources in the System file (if I remember correctly) .  Good luck
  999.  > finding it though.  There are thousands.  I've kept a list of
  1000.  > miscellaneous strings I've run across in the past; but that one isn't in
  1001.  > my list.
  1002.  
  1003. [snip]
  1004.  
  1005. Actually, it's stored in a DSAT resource. And be careful modifying it; the
  1006. string must be the same length (or you must change the lengthy and pad or
  1007. remove bytes as necessary to keep the resource the same size and the
  1008. string at the same offset and not overwrite any other data.) A little
  1009. slipup will cause your Mac to crash at startup.
  1010.  
  1011. There are programs out there that will do this for you. I don't remember
  1012. the name of any of them, but someone else here surely does.
  1013.  
  1014. Also, the "Connectix Ram Doubler" string is RAMDoubler's doing. So you'll
  1015. have to come up with a separate hack for RAMDoubler.
  1016.  
  1017. -Stian
  1018.  
  1019. +++++++++++++++++++++++++++
  1020.  
  1021. >From AjayToo@ptdprolog.net (AjayToo)
  1022. Date: Sun, 03 Nov 1996 00:27:30 -0500
  1023. Organization: ProLog - PenTeleData, Inc.
  1024.  
  1025. In article <96303.195858JJACQU51@MAINE.MAINE.EDU>,
  1026. <JJACQU51@MAINE.MAINE.EDU> wrote:
  1027.  
  1028. > HI there, I have never really done any Mac programming but I would like
  1029. to chan
  1030. > ge the "welcome to Macintosh. Connectix Ram Doubler" opening box at startup to
  1031. > a customized message..... can someone help me... or send advice, Thanks
  1032. > jjacqu51@maine.maine.edu
  1033.  
  1034.  
  1035. You can replace that little phrase with one of your own, or with none at
  1036. all. Begin by making a backup copy of the RAM Doubler extension, which you
  1037. can do by option-dragging the original from the Extensions folder to the
  1038. Startup Disk icon. Then use Apple's ResEdit utility to open the original
  1039. RAM Doubler, and in the list of resource types that appears, double-click
  1040. the DSAT type. Open the only DSAT resource, ID -4064, to see its contents.
  1041. Then find the message on the right side of the resource-editing window,
  1042. select it, and type a replacement (see "RAM Doubler Start-up"). Save your
  1043. changes and restart the Mac to view your handiwork.
  1044.  
  1045.  
  1046. -AjayToo
  1047.  
  1048. +++++++++++++++++++++++++++
  1049.  
  1050. >From Yi Li <yili@cse.bridgeport.edu>
  1051. Date: Sun, 03 Nov 1996 15:25:15 -0500
  1052. Organization: UB
  1053.  
  1054. Hi, 
  1055.  
  1056. I could grab a vedio frame by the code inclosed but I don't know how to
  1057. save it. I use QuicktimeLib, the compiler is codewarrior 10. The
  1058. function call I used are vedio digitizer components.
  1059.  
  1060. Could you help me to tell me what function am I supposed
  1061. to use? Sample code or simple algorithm are more than welcomed.
  1062.  
  1063. Thanks,
  1064.  
  1065. Y Lee
  1066.  
  1067. void MyNew()
  1068. {
  1069.  ComponentInstance  VThingInst;
  1070.  
  1071. ...
  1072. //set all rectangle
  1073.  
  1074.  GrabOneFrame(VThingInst);
  1075. }
  1076.  
  1077. +++++++++++++++++++++++++++
  1078.  
  1079. >From smfr@santafe.edu (Simon Fraser)
  1080. Date: Sat, 02 Nov 1996 14:38:04 -0700
  1081. Organization: Santa Fe Institute
  1082.  
  1083. In article <microcsm-0211960147060001@news.goldinc.com>,
  1084. microcsm@goldinc.com (David Blache) wrote:
  1085.  
  1086. > In article <96303.195858JJACQU51@MAINE.MAINE.EDU>,
  1087. > <JJACQU51@MAINE.MAINE.EDU> wrote:
  1088. > > HI there, I have never really done any Mac programming but I would like
  1089. > to chan
  1090. > > ge the "welcome to Macintosh. Connectix Ram Doubler" opening box at
  1091. startup to
  1092. > > a customized message..... can someone help me... or send advice, Thanks
  1093. > > jjacqu51@maine.maine.edu
  1094. > The "Welcome to Macintosh" message is stored in one of the STR or STR#
  1095. > resources in the System file (if I remember correctly) .  Good luck
  1096. > finding it though.  There are thousands.  I've kept a list of
  1097. > miscellaneous strings I've run across in the past; but that one isn't in
  1098. > my list.  Just in case, here they are:
  1099. [snip]
  1100.  
  1101. There is a nice little program, Errditor, which lets you edit the
  1102. startup messages. It won't let you change the Ram Doubler one though;
  1103. you might have to go messing with Ram Doubler resources or invisible
  1104. files to get at that one.
  1105.  
  1106. Errditor is on the usual Mac archives.
  1107.  
  1108. Simon
  1109.  
  1110. +++++++++++++++++++++++++++
  1111.  
  1112. >From microcsm@goldinc.com (David Blache)
  1113. Date: Sat, 02 Nov 1996 01:47:06 -0600
  1114. Organization: STAZ Software, Inc.
  1115.  
  1116. In article <96303.195858JJACQU51@MAINE.MAINE.EDU>,
  1117. <JJACQU51@MAINE.MAINE.EDU> wrote:
  1118.  
  1119. > HI there, I have never really done any Mac programming but I would like
  1120. to chan
  1121. > ge the "welcome to Macintosh. Connectix Ram Doubler" opening box at startup to
  1122. > a customized message..... can someone help me... or send advice, Thanks
  1123. > jjacqu51@maine.maine.edu
  1124.  
  1125. The "Welcome to Macintosh" message is stored in one of the STR or STR#
  1126. resources in the System file (if I remember correctly) .  Good luck
  1127. finding it though.  There are thousands.  I've kept a list of
  1128. miscellaneous strings I've run across in the past; but that one isn't in
  1129. my list.  Just in case, here they are:
  1130.  
  1131. "About This Macintosh..."
  1132.    Finder: STR ID 10000 ...and...
  1133.    Finder: STR# ID 5000, index# 56
  1134.  
  1135. "Finishing Move..."
  1136.    Finder: STR# ID 8750, index# 16
  1137.  
  1138. "Clean Up Desktop" menu item
  1139.    Finder: STR# ID 10250, index# 1
  1140.  
  1141. Font Example Text (when you open a font in the Finder):
  1142.    Finder: STR# ID 14516, index# 1
  1143.  
  1144. "Starting Up..."
  1145.    System 7.5 Update: STR -16502
  1146.  
  1147. +++++++++++++++++++++++++++
  1148.  
  1149. >From donarb@wolfenet.com (Don Arbow)
  1150. Date: Wed, 06 Nov 1996 09:59:19 -0800
  1151. Organization: Wolfe Internet Access, L.L.C.
  1152.  
  1153. In article <AjayToo-0311960027310001@cs1-01.lan.ptd.net>,
  1154. AjayToo@ptdprolog.net (AjayToo) wrote:
  1155.  
  1156. :  In article <96303.195858JJACQU51@MAINE.MAINE.EDU>,
  1157. :  <JJACQU51@MAINE.MAINE.EDU> wrote:
  1158. :  
  1159. :  > HI there, I have never really done any Mac programming but I would like
  1160. :  to chan
  1161. :  > ge the "welcome to Macintosh. Connectix Ram Doubler" opening box at
  1162. startup to
  1163. :  > a customized message..... can someone help me... or send advice, Thanks
  1164. :  > jjacqu51@maine.maine.edu
  1165. :  
  1166. :  
  1167. :  You can replace that little phrase with one of your own, or with none at
  1168. :  all. Begin by making a backup copy of the RAM Doubler extension, which you
  1169. :  can do by option-dragging the original from the Extensions folder to the
  1170. :  Startup Disk icon. Then use Apple's ResEdit utility to open the original
  1171. :  RAM Doubler, and in the list of resource types that appears, double-click
  1172. :  the DSAT type. Open the only DSAT resource, ID -4064, to see its contents.
  1173. :  Then find the message on the right side of the resource-editing window,
  1174. :  select it, and type a replacement (see "RAM Doubler Start-up"). Save your
  1175. :  changes and restart the Mac to view your handiwork.
  1176. :  
  1177. :  
  1178.  
  1179.  
  1180. A better way is to install a custom picture screen.  You can use this to
  1181. replace the Mac O/S two-faced pict.  You can create a large PICT, you
  1182. should leave some space at the bottom for the loading status messages. 
  1183. Then open up your System Update File with ResEdit or Resorcerer and paste
  1184. your PICT into resource -16506.  There's a few similar resources there for
  1185. black and white and 8 bit screens.  When you restart your machine, you'll
  1186. see your custom pict screen displayed.
  1187.  
  1188. Don
  1189.  
  1190. -- 
  1191. - ------------------------------------------------------------------------
  1192.     \ | /    Don Arbow, Partner, CTO |  donarb@wolfenet.com
  1193.   -- EDO --  EveryDay Objects, Inc.  |  http://www.pla-net.net/edo
  1194.     / | \    Seattle, WA             |
  1195. - ------------------------------------------------------------------------
  1196.   My Prographing web page:   http://www.wolfe.net/~donarb/Dataflow.html
  1197.         "The fix is only temporary, unless it works" - Red Green
  1198. - ------------------------------------------------------------------------
  1199.  
  1200. ---------------------------
  1201.  
  1202. >From wouterfw@cistron.nl (Wouter)
  1203. Subject: Help: endian conversuin
  1204. Date: Mon, 04 Nov 1996 12:28:49 +0100
  1205. Organization: Human Software
  1206.  
  1207. Hi,
  1208.  
  1209. I am trying to import a file from PC with lots of numbers in it. Most of
  1210. them are 6 byte reals.
  1211.  
  1212. Are there any Converters around that I could use??
  1213.  
  1214. I'd like to convert the PC real to Mac double.
  1215.  
  1216. Maybe it would be nice to have a general purpose converter....
  1217.  
  1218. Thanx
  1219.  
  1220. Wouter
  1221.  
  1222. +++++++++++++++++++++++++++
  1223.  
  1224. >From Conal Walsh <conal@ind.tansu.com.au>
  1225. Date: Tue, 5 Nov 1996 15:53:03 +1100
  1226. Organization: Telstra
  1227.  
  1228. On Mon, 4 Nov 1996, Wouter wrote:
  1229.  
  1230. > Hi,
  1231. > I am trying to import a file from PC with lots of numbers in it. Most of
  1232. > them are 6 byte reals.
  1233. > Are there any Converters around that I could use??
  1234. > I'd like to convert the PC real to Mac double.
  1235. > Maybe it would be nice to have a general purpose converter....
  1236.  
  1237. I suspect you will have to do this conversion the hard way; i.e. extract
  1238. the mantissa, exponent and sign bit individually and use these to create a
  1239. "double" on the Mac. Use frexp() to apply the exponent to the mantissa. 
  1240. Also, check the order of bytes in the mantissa; it is probably little
  1241. endian (least significant byte first). 
  1242.  
  1243.  
  1244.   /||\     Conal Walsh
  1245.  / ||/     Correct Procedures Pty Ltd     Engineering and Consultancy
  1246.  \ ||      Sydney, Australia              Services for the
  1247.   \||      correct@mypostbox.com          Telecommunications Industry
  1248.  
  1249. "Some people live in the fast lane; I live in the oncoming traffic."
  1250.  
  1251.  
  1252.  
  1253. +++++++++++++++++++++++++++
  1254.  
  1255. >From sch@unx.sas.com (Steve Holzworth)
  1256. Date: Wed, 6 Nov 1996 18:32:35 GMT
  1257. Organization: SAS Institute Inc.
  1258.  
  1259. Conal Walsh <conal@ind.tansu.com.au> writes:
  1260.  
  1261. >On Mon, 4 Nov 1996, Wouter wrote:
  1262.  
  1263. >> Hi,
  1264. >> 
  1265. >> I am trying to import a file from PC with lots of numbers in it. Most of
  1266. >> them are 6 byte reals.
  1267. >> 
  1268. >> Are there any Converters around that I could use??
  1269. >> 
  1270. >> I'd like to convert the PC real to Mac double.
  1271. >> 
  1272. >> Maybe it would be nice to have a general purpose converter....
  1273. >> 
  1274.  
  1275. >I suspect you will have to do this conversion the hard way; i.e. extract
  1276. >the mantissa, exponent and sign bit individually and use these to create a
  1277. >"double" on the Mac. Use frexp() to apply the exponent to the mantissa. 
  1278. >Also, check the order of bytes in the mantissa; it is probably little
  1279. >endian (least significant byte first). 
  1280.  
  1281. To help with this, you might want to search the web for sources to XDR
  1282. (eXternal Data Representation) libraries, which are used to read and write 
  1283. assorted binary C data types, including floats. It even supports VMS native 
  1284. float format (different from IEEE). The code as described won't act as a 
  1285. convertor, but will give you good examples of how to deal with endian changes.
  1286. XDR routines assume that they wrote the data out, so they swap endians et al
  1287. based on what their target neutral format is. You might luck out and find
  1288. that the PC standard format is the same as that expected by XDR.
  1289.  
  1290. The code was originally written by Sun Microsystems, but is generally
  1291. available in source form now.
  1292. --
  1293. Steve Holzworth
  1294. sch@unx.sas.com                    "Do not attribute to poor spelling
  1295. SAS Institute   x6872               That which is actually poor typing..."
  1296. Open Systems R&D  VMS/MAC/UNIX                            - me
  1297. Cary, N.C.
  1298.  
  1299. ---------------------------
  1300.  
  1301. >From "Brian Mowatt" <Brian.Mowatt@dial.pipex.com>
  1302. Subject: How common is 512 x 342 max res?
  1303. Date: 1 Nov 1996 10:32:25 GMT
  1304. Organization: Crocodile Clips Ltd.
  1305.  
  1306. Hi there,
  1307.  Ive been developing an app that really depends on the max 
  1308. screen resolution being a minimum of 640 x 4??. Lo and behold 
  1309. when doing beta testing I encountered color classics, screen resolution
  1310. being a max of 512 x 342. 
  1311.  
  1312.  To rewrite the program to support the lower res would be a REAL pain,
  1313. so does anyone out there  know how common this is the max res?
  1314. If its any I've noted that the only four macs I can find that support my
  1315. app
  1316. in all other respects bar resolution are:
  1317.  Mac SE/30, MacClassic II, Color Classic, Color Classic II.
  1318. P.S. If anyone could point me in the direction of somewhere with mac sales
  1319. 'by type' I'd be their friend for life! I've searched the Web but maybe I
  1320. missed it
  1321. Thanks in advance, 
  1322. -- 
  1323. Brian.Mowatt@dial.pipex.com
  1324. Software developer
  1325. Crocodile Clips Lrd.
  1326.  
  1327. +++++++++++++++++++++++++++
  1328.  
  1329. >From Greg Jorgensen <gregj@europa.com>
  1330. Date: Wed, 06 Nov 1996 21:56:46 -0800
  1331. Organization: europa communications inc.
  1332.  
  1333. Brian Mowatt wrote:
  1334. > Hi there,
  1335. >  Ive been developing an app that really depends on the max
  1336. > screen resolution being a minimum of 640 x 4??. Lo and behold
  1337. > when doing beta testing I encountered color classics, screen resolution
  1338. > being a max of 512 x 342.
  1339. >  To rewrite the program to support the lower res would be a REAL pain,
  1340. > so does anyone out there  know how common this is the max res?
  1341. > If its any I've noted that the only four macs I can find that support my
  1342. > app
  1343. > in all other respects bar resolution are:
  1344. >  Mac SE/30, MacClassic II, Color Classic, Color Classic II.
  1345. > P.S. If anyone could point me in the direction of somewhere with mac sales
  1346. > 'by type' I'd be their friend for life! I've searched the Web but maybe I
  1347. > missed it
  1348. > Thanks in advance,
  1349.  
  1350. That isn't the only resolution you'll find smaller than 640 x 480. Apple
  1351. sold 12" color monitors for a while that are 600 x 400 or something like
  1352. that. When sales dried up they unloaded the monitors into schools. They
  1353. are the bane of all educational software developers, and only recently
  1354. have they been replaced in some schools with 13" monitors.
  1355.  
  1356. All of the PowerBooks prior to the 180c and the Duo 280 (I think that's
  1357. the model number) had LCD screens smaller than 640 x 480.
  1358.  
  1359. If you want your code to be compatible with all Mac you'll have to
  1360. support the lower resolutions.
  1361.  
  1362. The freeware utility database "Guru," available in the usual places, has
  1363. some good info. And Ziff-Davis used to publish a Mac models database but
  1364. I don't know how current it is. Apple dealers get little pocket booklets
  1365. and wall posters showing all of the Mac models and their specs. If you
  1366. can't get one from a dealer, call Apple at (408) 996-1010 and ask for
  1367. one. When you have a question about Apple's sales figures or their specs
  1368. it's always best to first call them; I've never seen them answer that
  1369. kind of question in a Usenet group.
  1370.  
  1371. -- 
  1372. Greg Jorgensen - Portland, Oregon, USA - gregj@europa.com
  1373.  
  1374. "Not only is there but one way of doing things rightly, but there is
  1375. only one way of seeing them, and that is seeing the whole of them." --
  1376. Ruskin
  1377.  
  1378. ---------------------------
  1379.  
  1380. >From mieczko1@acsu.buffalo.edu (Mark C Mieczkowski)
  1381. Subject: ML for macintosh?
  1382. Date: 25 Oct 1996 01:43:40 GMT
  1383. Organization: UB
  1384.  
  1385. Hi,
  1386. Has anyone heard of an implementation of ML for the macintosh?
  1387.  
  1388. thanks,
  1389. -Mark
  1390.  
  1391.  
  1392. +++++++++++++++++++++++++++
  1393.  
  1394. >From seagull@seagull.net (Seagull Networks)
  1395. Date: Fri, 25 Oct 1996 22:54:35 -0700
  1396. Organization: Seagull Networks
  1397.  
  1398. In article <54p60c$3nl@prometheus.acsu.buffalo.edu>,
  1399. mieczko1@acsu.buffalo.edu (Mark C Mieczkowski) wrote:
  1400.  
  1401. > Hi,
  1402. > Has anyone heard of an implementation of ML for the macintosh?
  1403. > thanks,
  1404. > -Mark
  1405.  
  1406. There's Caml Light. You can find a copy of it at:
  1407.  
  1408.   <ftp://ftp.inria.fr/lang/caml-light/>
  1409.  
  1410. ______________________________________________________________________
  1411.  Seagull Networks - offering quality web hosting at affordable prices
  1412.          Visit <http://www.seagull.net/> for more information
  1413.  
  1414. +++++++++++++++++++++++++++
  1415.  
  1416. >From yeung@reed.edu (Woodrow Yeung)
  1417. Date: Fri, 25 Oct 1996 16:46:42 -0600
  1418. Organization: Reed College
  1419.  
  1420. In article <54p60c$3nl@prometheus.acsu.buffalo.edu>,
  1421. mieczko1@acsu.buffalo.edu (Mark C Mieczkowski) wrote:
  1422.  
  1423. > Hi,
  1424. > Has anyone heard of an implementation of ML for the macintosh?
  1425.  
  1426. Yes!  You can find it at:
  1427.  
  1428. ftp://research.att.com/dist/ml/mac
  1429.  
  1430. Woody Yeung
  1431. yeung@reed.edu
  1432.  
  1433. +++++++++++++++++++++++++++
  1434.  
  1435. >From benjasik@cs.princeton.edu (Benji Jasik)
  1436. Date: Fri, 25 Oct 1996 23:20:21 -0800
  1437. Organization: Princeton Univesity
  1438.  
  1439. In article <54p60c$3nl@prometheus.acsu.buffalo.edu>,
  1440. mieczko1@acsu.buffalo.edu (Mark C Mieczkowski) wrote:
  1441.  
  1442. > Hi,
  1443. > Has anyone heard of an implementation of ML for the macintosh?
  1444.  
  1445. Check out:
  1446. http://www.cs.princeton.edu/~appel/smlnj/announce.93.html
  1447.  
  1448. +++++++++++++++++++++++++++
  1449.  
  1450. >From William Clodius <wclodius@lanl.gov>
  1451. Date: Tue, 05 Nov 1996 11:40:09 -0700
  1452. Organization: Los Alamos National Lab
  1453.  
  1454. Mark C Mieczkowski wrote:
  1455. > Hi,
  1456. > Has anyone heard of an implementation of ML for the macintosh?
  1457. > thanks,
  1458. > -Mark
  1459.  
  1460. There are several versions available (see the comp.lang.ml FAQ
  1461. http://www.cs.cmu.edu/afs/cs.cmu.edu/user/jgmorris/web/sml-faq.html)
  1462.  
  1463. SML/NJ (this is very memory intensive, but the most complete version)
  1464. http://cm.bell-labs.com/cm/cs/what/smlnj/announce.93.html
  1465.  
  1466. CAML/Light (byte code?)
  1467. http://pauillac.inria.fr:80/caml/distrib-caml-light-eng.html
  1468.  
  1469. Moscow ML (based on CAML/Light) (byte code)
  1470. ttp://www.dina.kvl.dk/~sestoft/mosml.html
  1471.  
  1472. Note SML is undergoing a change in its standard definition
  1473. http://cm.bell-labs.com/cm/cs/what/smlnj/sml96.html
  1474.  
  1475. If you are interested in ML on the Mac you might also be interested in
  1476. the related languages Clean
  1477. http://www.cs.kun.nl/~clean/
  1478.  
  1479. Haskell (Interpreter?)
  1480. http://haskell.systemsz.cs.yale.edu/haskell/yale/oldStuff/
  1481.  
  1482. Sisal (Interpreter)
  1483. http://www.llnl.gov/sisal/SisalHomePage.html 
  1484.  
  1485. and Gofer (a dialect of Haskell (Interpreter)
  1486. ftp://ftp.dcs.glasgow.ac.uk/pub/haskell/gofer/macgofer/
  1487.  
  1488. -- 
  1489.  
  1490. William B. Clodius        Phone: (505)-665-9370
  1491. Los Alamos National Laboratory    Email: wclodius@lanl.gov
  1492. Los Alamos, NM 87545
  1493.  
  1494. ---------------------------
  1495.  
  1496. >From Barry Wark <warkx001@maroon.tc.umn.edu>
  1497. Subject: Q: how do I crop and then resave a PICT file?
  1498. Date: Fri, 01 Nov 1996 18:03:41 -0600
  1499. Organization: University of Minnesota
  1500.  
  1501. I would like to be able to open a PICT file in my C++ program (I'm using 
  1502. TCL 2.0), allow the user to select a portion of the picture, then resave 
  1503. just the selected portion of the picture. Can I do this without 
  1504. resorting to parsing the PICT file code?
  1505.  
  1506. TIA
  1507. -- 
  1508. Sincerely,
  1509. Barry J. Wark
  1510.  
  1511. "Imagination is more important than knowledge." -- Albert Einstein
  1512.  
  1513. - ---BEGIN PGP PUBLIC KEY BLOCK-----
  1514. Version: 2.6.2
  1515.  
  1516. mQBvAzFpg1EAAAEDAMgoFiLYOLS6z6qLydIpe0FK+0HQFrQjKS/3Me66qaWGkhvK
  1517. OImflWOoDnVO7sxlivyAjmj0uzfw5yT3N/lHPOOxADtl9O3rFscj2DiaSuYYNP4W
  1518. LJBszHVxslNG9PdwsQARAQABtCpCYXJyeSBKLiBXYXJrIDx3YXJreDAwMUBtYXJv
  1519. b24udGMudW1uLmVkdT4=
  1520. =ieUK
  1521. - ---END PGP PUBLIC KEY BLOCK-----
  1522.  
  1523. +++++++++++++++++++++++++++
  1524.  
  1525. >From Joshua C Horan <horan+@andrew.cmu.edu>
  1526. Date: Fri,  1 Nov 1996 22:47:05 -0500
  1527. Organization: Freshman, MCS Undeclared, Carnegie Mellon, Pittsburgh, PA
  1528.  
  1529. Excerpts from netnews.comp.sys.mac.programmer.help: 1-Nov-96 Q: how do I
  1530. crop and then r.. by Barry Wark@maroon.tc.umn 
  1531. > I would like to be able to open a PICT file in my C++ program (I'm using 
  1532. > TCL 2.0), allow the user to select a portion of the picture, then resave 
  1533. > just the selected portion of the picture. Can I do this without 
  1534. > resorting to parsing the PICT file code?
  1535.  
  1536. Couldn't you just copy the picture to an offscreen, get the user's rect
  1537. and then do another copybits using that rect inside a
  1538. OpenPicture()/ClosePicture() wrapper?
  1539.  
  1540. I think you need to look into the OpenPicture() and ClosePicture()
  1541. toolbox calls.  Check out IM Imaging W/ Quickdraw.
  1542.  
  1543.  
  1544. Josh Horan 
  1545.  
  1546. +++++++++++++++++++++++++++
  1547.  
  1548. >From carl.gustafson@no.spam.welcome (Carl Gustafson)
  1549. Date: Mon, 04 Nov 1996 10:06:25 -0500
  1550. Organization: Imaging and Computer Vision Center, Drexel University
  1551.  
  1552. In article <327A8FDD.6F39@maroon.tc.umn.edu>, Barry Wark
  1553. <warkx001@maroon.tc.umn.edu> wrote:
  1554.  
  1555. > I would like to be able to open a PICT file in my C++ program (I'm using 
  1556. > TCL 2.0), allow the user to select a portion of the picture, then resave 
  1557. > just the selected portion of the picture. Can I do this without 
  1558. > resorting to parsing the PICT file code?
  1559.  
  1560. After getting the rectangle your user wants the picture cropped to, do an
  1561. OpenPicture (), followed by CopyBitsing that rectangle onto the same pixel
  1562. map. End by doing a ClosePicture (), and saving the resulting picture to a
  1563. file.
  1564.  
  1565. -- 
  1566. Carl Gustafson
  1567. carl.gustafson at ece.drexel.edu
  1568. (busily trying to avoid spammers)
  1569. Imaging and Computer Vision Center
  1570. Drexel University, Philadelphia, Penna
  1571. - ----------------------------------------------------------
  1572. I don't speak for Drexel, and Drexel doesn't listen to me...
  1573.  
  1574. +++++++++++++++++++++++++++
  1575.  
  1576. >From mouser@zercom.net (Martin-Gilles Lavoie)
  1577. Date: 5 Nov 1996 13:49:29 GMT
  1578. Organization: Groupimage, inc.
  1579.  
  1580. In article <327A8FDD.6F39@maroon.tc.umn.edu>, Barry Wark
  1581. <warkx001@maroon.tc.umn.edu> wrote:
  1582.  
  1583. > I would like to be able to open a PICT file in my C++ program (I'm using 
  1584. > TCL 2.0), allow the user to select a portion of the picture, then resave 
  1585. > just the selected portion of the picture. Can I do this without 
  1586. > resorting to parsing the PICT file code?
  1587.  
  1588. Yup.  Basically, there are two ways of doing this, depending if you want
  1589. to remain vector information, or just keep a bitmap of the selected area. 
  1590. Here's the pseudocode for it (I'm in a lazy mood this morning):
  1591.  
  1592.  
  1593. draw original image in window
  1594. cropped image = open new color picture
  1595.  
  1596. if bitmap version
  1597.     
  1598.     copybits cropped area in place
  1599.     
  1600. or vectorial version
  1601.     
  1602.     draw original image
  1603. end
  1604.  
  1605. close picture
  1606.  
  1607.  
  1608. [premission granted to hate this pseudo-code syntax]
  1609.  
  1610. -- 
  1611. Martin-Gilles Lavoie  |  Opinions expressed herein are just that.
  1612. mouser@zercom.net     |  "No! Do, or do not.  There is no try."
  1613. Globimage, inc.       |         --Yoda on error handling
  1614.  
  1615. ---------------------------
  1616.  
  1617. >From "Zane H. Healy" <healyzh@ix.netcom.com>
  1618. Subject: ResEdit 'TMPL' question
  1619. Date: Sun, 03 Nov 1996 23:29:00 -0800
  1620. Organization: Netcom
  1621.  
  1622. I'm tring to create a ResEdit template for custom resource.  I've looked
  1623. at the documentation on ResEdit, and I've a couple of questions.
  1624.  
  1625. Is 'DWRD' the equivalent of a 'int' in C, and is 'DLNG' the equivalent
  1626. of a 'long' in C?  If not what is?
  1627.  
  1628. It's a case of I'd like to know the right way to do it prior to writing
  1629. the code, and typing all the data into ResEdit.  Is that as lazy as it
  1630. sounds?
  1631.  
  1632. Thank you for your time.
  1633.  
  1634.                         Zane
  1635.  
  1636. +++++++++++++++++++++++++++
  1637.  
  1638. >From Greg Jorgensen <gregj@europa.com>
  1639. Date: Wed, 06 Nov 1996 21:59:52 -0800
  1640. Organization: europa communications inc.
  1641.  
  1642. Zane H. Healy wrote:
  1643. > I'm tring to create a ResEdit template for custom resource.  I've looked
  1644. > at the documentation on ResEdit, and I've a couple of questions.
  1645. > Is 'DWRD' the equivalent of a 'int' in C, and is 'DLNG' the equivalent
  1646. > of a 'long' in C?  If not what is?
  1647.  
  1648. Close. DWRD is the equivalent of a C short integer. It will also be the
  1649. same as a C int if the compiler is set to use 2-byte ints, but the size
  1650. of an int is not defined to be any particular size. DLNG is equivalent
  1651. to a C long integer.
  1652.  
  1653. > It's a case of I'd like to know the right way to do it prior to writing
  1654. > the code, and typing all the data into ResEdit.  Is that as lazy as it
  1655. > sounds?
  1656.  
  1657. Use Resorcerer. It can change the data for you after you've entered it
  1658. if you have to change the template. And it has much better documentation
  1659. that ResEdit.
  1660.  
  1661. -- 
  1662. Greg Jorgensen - Portland, Oregon, USA - gregj@europa.com
  1663.  
  1664. "Not only is there but one way of doing things rightly, but there is
  1665. only one way of seeing them, and that is seeing the whole of them." --
  1666. Ruskin
  1667.  
  1668. ---------------------------
  1669.  
  1670. >From Gerald Winslow <winslow@hous.inmet.com>
  1671. Subject: Symantec C++ going away?
  1672. Date: Tue, 5 Nov 1996 01:32:02 GMT
  1673. Organization: Intermetrics, Inc.
  1674.  
  1675. I heard that Symantec is decreasing their Mac C++ effort in order to
  1676. increase their Mac Java effort.  I didn't know if this was true, but
  1677. then I saw the latest Apple Dev Catalog, in which the Sym. C++ package
  1678. was priced very low (< $150).  That lead me to believe the rumor.  So,
  1679. is it true?  Will MetroWerks have only Apple as their competitor?
  1680.  
  1681. Thanks for any info!
  1682.  
  1683. Gerald Winslow
  1684. Senior Engineer
  1685. Intermetrics, Inc.
  1686. winslow@hous.inmet.com
  1687.  
  1688. +++++++++++++++++++++++++++
  1689.  
  1690. >From pteeson@interlog.com (Peter Teeson)
  1691. Date: Tue, 05 Nov 1996 08:47:52 -0600
  1692. Organization: InterLog Internet Services
  1693.  
  1694. In article <327E9912.680F@hous.inmet.com>, winslow@hous.inmet.com wrote:
  1695.  
  1696. >I heard that Symantec is decreasing their Mac C++ effort in order to
  1697. >increase their Mac Java effort.  I didn't know if this was true, but
  1698. >then I saw the latest Apple Dev Catalog, in which the Sym. C++ package
  1699. >was priced very low (< $150).  That lead me to believe the rumor.  So,
  1700. >is it true?  Will MetroWerks have only Apple as their competitor?
  1701. >
  1702. >Thanks for any info!
  1703. >
  1704. >Gerald Winslow
  1705. >Senior Engineer
  1706. >Intermetrics, Inc.
  1707. >winslow@hous.inmet.com
  1708.  
  1709. Symantec closed their Bedford Massachusets office a few months ago.
  1710. They renamed their development tools group to Internet Tools group
  1711. or something like that.  Some people moved to CA and last I heard they 
  1712. were trying to hire for the group.
  1713.  
  1714. They have publicly stated they will continue with their C++ effort.
  1715. I have absolutley no confidence that they will do so nor do I have evidence
  1716. that they will. OTOH I do have evidence that they don't follow through.
  1717.  
  1718. For example I found and reported a probable bug in the C++ pre-processor
  1719. wrt nested macro expansions. I was assured that "....you will be kept in the loop....".
  1720. Hah.
  1721.  
  1722. Although their IDE has some pretty important and nice features that are not yet 
  1723. in CodeWarrior, (multiple open projects, nested projects, a more mature compiler),
  1724. etc I expect CW will get there one day.
  1725.  
  1726. I also note the fall in the Symantec share price. Even their shareholders must be getting 
  1727. nervous at the price drop.
  1728.  
  1729. Putting it all together I conclude they don't really care anymore.... not the engineers
  1730. of course but the giant brains running the oompany.
  1731.  
  1732. Just my personal opinion though.
  1733.  
  1734. Peter
  1735.  
  1736. -- 
  1737. General Consulting & Research Inc.
  1738. 712 - 24 Forest Manor Road
  1739. Willowdale, ON
  1740. M2J 1M3
  1741. 416-494-5888 voice  416-494-4832 fax
  1742.  
  1743. "Developing quality software requires a great deal of effort
  1744. over a long period of time." Doug Schmidt - C++ Report May 1996
  1745.  
  1746. +++++++++++++++++++++++++++
  1747.  
  1748. >From tree@apple.com (Tom Emerson)
  1749. Date: Tue, 05 Nov 1996 10:51:14 -0500
  1750. Organization: Apple Computer, Inc.
  1751.  
  1752. In article <pteeson-0511960847530001@ip203-117.cc.interlog.com>,
  1753. pteeson@interlog.com (Peter Teeson) wrote:
  1754.  
  1755. >They have publicly stated they will continue with their C++ effort.
  1756. >I have absolutley no confidence that they will do so nor do I have evidence
  1757. >that they will. OTOH I do have evidence that they don't follow through.
  1758.  
  1759. I agree with Peter that Symantec has a definite history of not following
  1760. through, in all of their products on Wintel and Mac.
  1761.  
  1762. The important thing to remember, though, is that the Macintosh Java effort
  1763. is based on technology that came from the Bedford office, and the Java
  1764. teams are using the Symantec tools for their work. By necessity the core
  1765. tools will be maintained and enhanced, as required.
  1766.  
  1767. >For example I found and reported a probable bug in the C++ pre-processor
  1768. >wrt nested macro expansions. I was assured that "....you will be kept in
  1769. the loop....".
  1770. >Hah.
  1771.  
  1772. Well, you probably have. The problem is that there probably hasn't been any
  1773. news to inform you of. I reported a bug const bug in the compiler and was
  1774. told that I'd be kept in the loop too...
  1775.  
  1776. >I also note the fall in the Symantec share price. Even their shareholders
  1777. >must be getting nervous at the price drop.
  1778.  
  1779. If you think there is any relation between the stock price and Symantec C++
  1780. you are *very* mistaken. Symantec's stock went in the toilet months before
  1781. anything happened to Bedford, and it certainly was *not* related to C++.
  1782. Indeed, until Java the development tools portions of the company were a
  1783. flea on a large rat.
  1784.  
  1785. >Putting it all together I conclude they don't really care anymore.... not
  1786. >the engineers of course but the giant brains running the oompany.
  1787.  
  1788. I would posit that management, with a couple of exceptions, didn't care
  1789. *ever*. One of the reasons I left.
  1790.  
  1791. >Just my personal opinion though.
  1792.  
  1793. Ditto.
  1794.  
  1795.     -tre
  1796.  
  1797. --
  1798. Tom Emerson                                                 Cambridge R&D
  1799. Senior Software Engineer                             Apple Computer, Inc.
  1800. <mailto:tree@apple.com>                  <http://www.tiac.net/users/tree>
  1801.  
  1802. +++++++++++++++++++++++++++
  1803.  
  1804. >From tree@apple.com (Tom Emerson)
  1805. Date: Tue, 05 Nov 1996 10:22:45 -0500
  1806. Organization: Apple Computer, Inc.
  1807.  
  1808. In article <327E9912.680F@hous.inmet.com>, winslow@hous.inmet.com wrote:
  1809.  
  1810. >I heard that Symantec is decreasing their Mac C++ effort in order to
  1811. >increase their Mac Java effort.  I didn't know if this was true, but
  1812. >then I saw the latest Apple Dev Catalog, in which the Sym. C++ package
  1813. >was priced very low (< $150).  That lead me to believe the rumor.  So,
  1814. >is it true?  Will MetroWerks have only Apple as their competitor?
  1815.  
  1816. Symantec decided to reduce the price of Symantec C++ six or seven months
  1817. ago in an effort to make it more (financially) appealing for developers to
  1818. "give it a try".
  1819.  
  1820. It is true that Symantec is focusing on Java on both the Intel and
  1821. Macintosh platforms, though they are keeping a "core tools" group which is
  1822. focusing on the C/C++ compilers and environment. Work is continuing on the
  1823. IDE and releases are scheduled for the end of the year (last I heard).
  1824.  
  1825.     -tre
  1826.  
  1827. --
  1828. Tom Emerson                                                 Cambridge R&D
  1829. Senior Software Engineer                             Apple Computer, Inc.
  1830. <mailto:tree@apple.com>                  <http://www.tiac.net/users/tree>
  1831.  
  1832. +++++++++++++++++++++++++++
  1833.  
  1834. >From nagle@netcom.com (John Nagle)
  1835. Date: Tue, 5 Nov 1996 17:43:29 GMT
  1836. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  1837.  
  1838. tree@apple.com (Tom Emerson) writes:
  1839. >In article <pteeson-0511960847530001@ip203-117.cc.interlog.com>,
  1840. >pteeson@interlog.com (Peter Teeson) wrote:
  1841. >>They have publicly stated they will continue with their C++ effort.
  1842. >>I have absolutley no confidence that they will do so nor do I have evidence
  1843. >>that they will. OTOH I do have evidence that they don't follow through.
  1844.  
  1845. >I agree with Peter that Symantec has a definite history of not following
  1846. >through, in all of their products on Wintel and Mac.
  1847.  
  1848.        As I've mentioned before, Symantec seems to have a sort of 
  1849. product cycle, like the auto industry.
  1850. They get a product working, promote it heavily, get sales up, and then
  1851. don't change it much for a few years.  Once sales slip seriously and the trade
  1852. magazines start saying bad things, they put some resources into the
  1853. product and do a major revision.  The Norton Utilities and the C/C++
  1854. tools have both been through this cycle about three times each.
  1855.  
  1856.                     John Nagle
  1857.  
  1858. ---------------------------
  1859.  
  1860. >From pburgst@cs.bgsu.edu (Peter Burgstaller)
  1861. Subject: Texteditor needed w- AppleScript
  1862. Date: Tue, 05 Nov 1996 20:24:19 -0500
  1863. Organization: Bowling Green State University
  1864.  
  1865. Hi folks,
  1866.  
  1867. I need a text editor that can handle files bigger than 32k and is
  1868. scriptable via AppleScript. Ideally it should implement most of the
  1869. features of the Scriptable Text Editor from apple.
  1870.  
  1871. - Anybody knows such an editor?
  1872. - Pls let me know via email, THANX!!!!!
  1873. - Peter
  1874. (pburgst@cs.bgsu.edu)
  1875.  
  1876. +++++++++++++++++++++++++++
  1877.  
  1878. >From uzs90z@uni-bonn.de (Michael Schuerig)
  1879. Date: Wed, 6 Nov 1996 15:48:31 +0100
  1880. Organization: RHRZ - University of Bonn (Germany)            
  1881.  
  1882. Peter Burgstaller <pburgst@cs.bgsu.edu> wrote:
  1883.  
  1884. > I need a text editor that can handle files bigger than 32k and is
  1885. > scriptable via AppleScript. Ideally it should implement most of the
  1886. > features of the Scriptable Text Editor from apple.
  1887.  
  1888. Look for Style on info-mac.
  1889.  
  1890. Michael
  1891.  
  1892. - -
  1893. Michael Schuerig
  1894. mailto:uzs90z@uni-bonn.de
  1895. http://www.rhrz.uni-bonn.de/~uzs90z/
  1896.  
  1897. +++++++++++++++++++++++++++
  1898.  
  1899. >From dan@rhino.harvard.edu (Dan Crevier)
  1900. Date: Wed, 06 Nov 1996 09:24:54 -0500
  1901. Organization: Harvard University
  1902.  
  1903. In article <pburgst-0511962024190001@ts55.wcnet.org>, pburgst@cs.bgsu.edu
  1904. (Peter Burgstaller) wrote:
  1905.  
  1906. >I need a text editor that can handle files bigger than 32k and is
  1907. >scriptable via AppleScript. Ideally it should implement most of the
  1908. >features of the Scriptable Text Editor from apple.
  1909.  
  1910. I think Marco Piovanelli's Style is exactly what you are looking for. 
  1911. Check out <ftp://rhino.harvard.edu//pub/dan/WASTE/style-143.hqx>
  1912.  
  1913. Dan
  1914.  
  1915. -- 
  1916. Dan Crevier <Dan.Crevier@pobox.com>
  1917. <http://rhino.harvard.edu/dan/home.html>
  1918.  
  1919. +++++++++++++++++++++++++++
  1920.  
  1921. >From Tom Carstensen <tom@countach.visix.com>
  1922. Date: 06 Nov 1996 11:24:20 -0500
  1923. Organization: Visix Software Inc.
  1924.  
  1925.  
  1926. In article <pburgst-0511962024190001@ts55.wcnet.org> pburgst@cs.bgsu.edu (Peter Burgstaller) writes:
  1927. >I need a text editor that can handle files bigger than 32k and is
  1928. >scriptable via AppleScript. Ideally it should implement most of the
  1929. >features of the Scriptable Text Editor from apple.
  1930.  
  1931. Preditor is a fully scriptable and recordable text editor.  For more
  1932. info refer to http://www.evatac.com.
  1933.  
  1934. --
  1935.  Tom Carstensen              tom@evatac.com
  1936.  President                   http://www.evatac.com
  1937.  Evatac Software             703.620.0669 (alt: 703.758.2835)
  1938.  
  1939.  Galaxy & Macintosh Software
  1940.  Development & Consulting
  1941.  
  1942.  
  1943. +++++++++++++++++++++++++++
  1944.  
  1945. >From bbsw@netcom.com (Bare Bones Software)
  1946. Date: Wed, 6 Nov 1996 15:37:12 GMT
  1947. Organization: Bare Bones Software, Inc.
  1948.  
  1949. In article <pburgst-0511962024190001@ts55.wcnet.org> pburgst@cs.bgsu.edu (Peter Burgstaller) writes:
  1950. >I need a text editor that can handle files bigger than 32k and is
  1951. >scriptable via AppleScript. Ideally it should implement most of the
  1952. >features of the Scriptable Text Editor from apple.
  1953.  
  1954. BBEdit 4.0 may serve your needs; have a look at <http://www.barebones.com/>
  1955. for more information.
  1956.  
  1957. Regards,
  1958.  
  1959. Rich Siegel
  1960. Bare Bones Software, Inc.
  1961.  
  1962.  
  1963.  
  1964. ---------------------------
  1965.  
  1966. >From masunta@news.siba.fi (Miika Asunta)
  1967. Subject: Writing ioCompletion routine for Device Manager
  1968. Date: 4 Nov 1996 00:03:24 +0200
  1969. Organization: Sibelius Academy, Helsinki
  1970.  
  1971. I need a C function prototype for a typical ioCompletion routine for
  1972. asynchronous Device Manager call.
  1973.  
  1974. And where I store the A5 value to acces my globals? 
  1975. This is easy with Notification and Sound Manager as well
  1976. as CTB - well documented.
  1977.  
  1978. I've read Inside Macintosh II, IV and VI pages containing information on
  1979. the routine but I only see a description useful for Assembly languace
  1980. call. 
  1981.  
  1982. Thanks in advance!
  1983.  
  1984. -- 
  1985. Miika Asunta                Double Bass Player
  1986. Miika.Asunta@siba.fi            Macintosh Programmer
  1987. tel. +358-0-7374 89            
  1988. GSM: +358-40-5477 842            http://www.siba.fi/~masunta
  1989.  
  1990. +++++++++++++++++++++++++++
  1991.  
  1992. >From cho@kenner.demon.co.uk (Chris Orgill)
  1993. Date: Wed, 06 Nov 1996 01:20:46 +0100
  1994. Organization: (none)
  1995.  
  1996. In article <masunta.847058213@amadeus.siba.fi>, masunta@news.siba.fi (Miika
  1997. Asunta) wrote:
  1998.  
  1999. > I need a C function prototype for a typical ioCompletion routine for
  2000. > asynchronous Device Manager call.
  2001. > And where I store the A5 value to acces my globals? 
  2002. > This is easy with Notification and Sound Manager as well
  2003. > as CTB - well documented.
  2004. > I've read Inside Macintosh II, IV and VI pages containing information on
  2005. > the routine but I only see a description useful for Assembly languace
  2006. > call. 
  2007. > Thanks in advance!
  2008. > -- 
  2009. > Miika Asunta                            Double Bass Player
  2010. > Miika.Asunta@siba.fi                    Macintosh Programmer
  2011. > tel. +358-0-7374 89                     
  2012. > GSM: +358-40-5477 842                   http://www.siba.fi/~masunta
  2013.  
  2014.  
  2015. Look at Develop Issue #13. Jim Luther wrote a definitive article
  2016. explaining asynch. completion routines for 68k. You need some
  2017. assembler glue :-( It's a mess. The article does _not mention PPC completion
  2018. procedures, however. They should be easier.
  2019.  
  2020. Chris Orgill
  2021.  
  2022. +++++++++++++++++++++++++++
  2023.  
  2024. >From doverton@iglou.com (Dave Overton)
  2025. Date: Tue, 5 Nov 1996 04:21:37 GMT
  2026. Organization: IgLou Internet Services (1-800-436-4456)
  2027.  
  2028. One good place to store your A5 is to place it in a structure after your
  2029. parameter block for your call in your calling routine. Then in your
  2030. completion routine, cast the pointer to the parameter block as one of your
  2031. structures. ( Which it must be, or it wouldn't be passed to your
  2032. completion routine. ) The odd thing about completion routines in C is that
  2033. you must retrieve the value in Register A0 and place it in a variable to
  2034. access your parameter block.This can be done by placing code to get A0 in
  2035. line with 68K machine code. If you need an example of this, e-mail me at
  2036. doverton@iglou.com and I will dig something up. ( Hopefully, not someone's
  2037. mother ) ( Ha Ha )
  2038. Dave Overton
  2039.  
  2040.  
  2041. In article <masunta.847058213@amadeus.siba.fi>, masunta@news.siba.fi
  2042. (Miika Asunta) wrote:
  2043.  
  2044. > I need a C function prototype for a typical ioCompletion routine for
  2045. > asynchronous Device Manager call.
  2046. > And where I store the A5 value to acces my globals? 
  2047. > This is easy with Notification and Sound Manager as well
  2048. > as CTB - well documented.
  2049. > I've read Inside Macintosh II, IV and VI pages containing information on
  2050. > the routine but I only see a description useful for Assembly languace
  2051. > call. 
  2052. > Thanks in advance!
  2053. > -- 
  2054. > Miika Asunta                            Double Bass Player
  2055. > Miika.Asunta@siba.fi                    Macintosh Programmer
  2056. > tel. +358-0-7374 89                     
  2057. > GSM: +358-40-5477 842                   http://www.siba.fi/~masunta
  2058.  
  2059. ---------------------------
  2060.  
  2061. >From Bill Rose <rosewj@tr.unisys.com>
  2062. Subject: [Q] Cross platform Development (Mac-Windows)...
  2063. Date: Tue, 5 Nov 1996 19:06:20 GMT
  2064. Organization: Unisys Corp.
  2065.  
  2066. Hi:
  2067.  
  2068. Besides the offerings from Pictorius, are there any other cross platform
  2069. programming environments for the Mac?  I want to be able to produce
  2070. projects that will compile and run on both a Mac (PPC) and Windows
  2071. (3.1/95)?
  2072.  
  2073. Thanks
  2074.  
  2075. -- 
  2076. Bill Rose
  2077. rosewj@tr.unisys.com
  2078. Unisys Corporation
  2079. - ------------------------------------------------------------
  2080. 'What a waste it is to lose one's mind - or not to have a mind.  How
  2081. true that is.'
  2082.         Vice-President Dan Quayle addressing a United Negro College Fund
  2083.         affair and garbling their slogan - 'A mind is a terrible thing 
  2084. to waste.'
  2085.  
  2086. +++++++++++++++++++++++++++
  2087.  
  2088. >From jpek@bizserve.com (Jeff Pek)
  2089. Date: Wed, 06 Nov 1996 16:40:24 -0500
  2090. Organization: Various Organizations
  2091.  
  2092. In article <327F902C.312E@tr.unisys.com>, rosewj@tr.unisys.com wrote:
  2093.  
  2094. > Besides the offerings from Pictorius, are there any other cross platform
  2095. > programming environments for the Mac?  I want to be able to produce
  2096. > projects that will compile and run on both a Mac (PPC) and Windows
  2097. > (3.1/95)?
  2098.  
  2099. There's a few different approaches (and probably an FAQ somewhere...):
  2100.  
  2101. 1) Cross-platform API (e.g., Zinc/zApp/...)
  2102.    You write to a proprietary UI api, which is then implemented on
  2103.    multiple platforms. This may be a good way to go if you don't already
  2104.    have code written on a system-specific API. You may lose platform
  2105.    look&feel somewhat, and it will likely be slower than native.
  2106.  
  2107. 2) Implement Mac & port to Windows.
  2108.    I know of at least one company that provides port of Mac toolbox
  2109.    on top of Windows API: Altura. They have a product called Mac2Win
  2110.    that works this way. This would be a good way to go if you already
  2111.    have a Mac product that you want to migrate to Windows without a
  2112.    complete rewrite.
  2113.  
  2114. 3) (Converse) Implement Windows & port to Mac.
  2115.    Microsoft and Willows sell porting packages that implement the
  2116.    Windows API on Mac. If you already have Windows app (or expertise),
  2117.    this may be a good solution.
  2118.  
  2119. hth - Jeff
  2120.  
  2121. -- 
  2122. Jeff Pek
  2123. Development Manager
  2124. Gene Codes Corp - Ann Arbor, MI
  2125. jpek@genecodes.com
  2126.  
  2127. +++++++++++++++++++++++++++
  2128.  
  2129. >From got@pobox.com (Gordon Tillman)
  2130. Date: Wed, 06 Nov 1996 17:04:11 -0500
  2131. Organization: n/a
  2132.  
  2133. Hey Bill,
  2134.  
  2135. You had written:
  2136.  
  2137. > Besides the offerings from Pictorius, are there any other cross platform
  2138. > programming environments for the Mac?  I want to be able to produce
  2139. > projects that will compile and run on both a Mac (PPC) and Windows
  2140. > (3.1/95)?
  2141.  
  2142. Interesting question.  I've been looking at a variety of alternatives
  2143. myself.  I won't repeat what Jeff has already said, but I would like to
  2144. add a few other possibilities to the mix:
  2145.  
  2146.     (1) Java
  2147.     (2) Python
  2148.     (3) TCL/Tk
  2149.     (4) Perl 5
  2150.  
  2151. I am no expert on any of these languages/environments, so I cannot comment
  2152. yet as to how good or complete the various offerings are.  I just wanted
  2153. to make you aware of some other options.  
  2154.  
  2155. --gordon tillman (got@pobox.com)
  2156.  
  2157. ---------------------------
  2158.  
  2159. >From mwehner@lince.lander.es (Mephisto)
  2160. Subject: [Q] Is there a function like GetDirContent()?
  2161. Date: Sun, 03 Nov 1996 20:00:29 +0200
  2162. Organization: Lander Internet
  2163.  
  2164. Dear Mac Programmers,
  2165.  
  2166.    I know this is a pretty stupid question but anyway... maybe there's
  2167. someone who can help me....
  2168.  
  2169. I want to create a shell-application similar to a UNIX input
  2170. My application should support the ls command...... (and cd and all that stuff)
  2171. The shell is not the problem, but:
  2172.   how do I get a list with the contents of a folder?
  2173. There HAS to be a function that gives me a list of all items in a folder -
  2174. maybe even one that tells me if that item is a file or a folder!
  2175. I tried to find some unix command - but there doesn't seem to be one in my
  2176. library
  2177. I feel pretty stupid to be honest - can you help me?
  2178.  
  2179. If you got some spare-time, could you please also send me some example
  2180. source-code? Just with this function!?!
  2181. (c++ would be best!)
  2182.  
  2183. Thank you very much!!
  2184.  
  2185.       Please send any answers, demos, flames or whatever to: mwehner@lander.es
  2186.  
  2187.  
  2188.                 Yours,
  2189.  
  2190.                         Martin
  2191.  
  2192. +++++++++++++++++++++++++++
  2193.  
  2194. >From gwilson685@aol.com
  2195. Date: 5 Nov 1996 20:58:40 GMT
  2196. Organization: America Online, Inc. (1-800-827-6364) (1.10)
  2197.  
  2198. Here's a routine I wrote to build a table of all the files within a given
  2199. directory.
  2200. It differentiates between files and folders as well.
  2201.  
  2202. Code seems stable, but I haven't tested it thoroughly,it's good enough to
  2203. give you the idea.
  2204. Basically, you loop doing PBGetCatInfoSync giving it a incremented index
  2205.  
  2206. Hope this helps
  2207. Greg
  2208.  
  2209. //
  2210. - ------------------------------------------------------------------------
  2211. -
  2212. //          BuildFromDirectory(long dirID)
  2213. //
  2214. - ------------------------------------------------------------------------
  2215. -
  2216. //    determine which files reside in a directory and add them to the
  2217. table
  2218.  
  2219. short LFileTable::BuildFromDirectory(long dirID)
  2220. {
  2221.  
  2222.     Str255                DirectoryName;
  2223.  
  2224.     Str255                fileName;
  2225.     long                currentDirID;
  2226.     short                vRefNum;
  2227.     short                file_idx = 1;
  2228.  
  2229.     CInfoPBPtr            catPBBlockPtr =
  2230. (CInfoPBPtr)NewPtrClear(sizeof(CInfoPBRec));
  2231.  
  2232.     // first, find out our default directory, really just doing this
  2233. to get our vref
  2234.     OSErr theErr = HGetVol(nil, &vRefNum, ¤tDirID);
  2235.  
  2236.     catPBBlockPtr->hFileInfo.ioCompletion = nil;
  2237.     catPBBlockPtr->dirInfo.ioCompletion = nil;
  2238.     catPBBlockPtr->hFileInfo.ioNamePtr = (unsigned char *)&fileName;
  2239.  
  2240.     while (!theErr) {
  2241.         catPBBlockPtr->dirInfo.ioDrDirID = dirID;
  2242.         catPBBlockPtr->dirInfo.ioVRefNum = vRefNum;
  2243.         catPBBlockPtr->hFileInfo.ioFDirIndex = file_idx;
  2244.         theErr = PBGetCatInfoSync(catPBBlockPtr);
  2245.         if ( !theErr) {
  2246.             
  2247.             UInt32    theIconID = 1000;    // assume it's a
  2248. document
  2249.  
  2250.             // according to IM -IV-155 you can tell it's a
  2251. directory by testing bit four 
  2252.             // of the ioFlAttrib (as described in the
  2253. CInfoPBRec)
  2254.  
  2255.             SInt8    theBit;
  2256.             theBit = catPBBlockPtr->hFileInfo.ioFlAttrib &
  2257. 0x10;
  2258.             if (theBit)
  2259.                 theIconID = 1001;
  2260.  
  2261.     l face a major memory leak!!!
  2262.             theTableItem = new STableItem(theIconID, fileName,
  2263. catPBBlockPtr->hFileInfo.ioDirID);
  2264.             this->InsertRows(1, file_idx-1, theTableItem,
  2265. sizeof(STableItem), false);
  2266.             ++file_idx;
  2267.  
  2268.         }
  2269.     }
  2270.     // thanks for the memory!
  2271.     DisposePtr((Ptr)catPBBlockPtr);
  2272.  
  2273.     if ( currentDirID != dirID)
  2274.         // set up this new directory as the working directory
  2275.         HSetVol(nil, vRefNum, dirID);
  2276.  
  2277.     if ( file_idx > 1 ) {
  2278.         STableCell theCell, theLastCell;
  2279.         TableIndexT    numRows, numCols;
  2280.         theCell.col = 1;
  2281.         theCell.row = 1;
  2282.         // we want to redraw the whole table before we do any
  2283. selection
  2284.         // cuz selecting will force the decoding of the jpeg image
  2285.         FocusDraw();
  2286.         GetTableSize(numRows, numCols);
  2287.         theLastCell.col = numCols;
  2288.         theLastCell.row = numRows;
  2289.         RefreshCellRange(theCell, theLastCell);
  2290.         // to get the thing to refresh, we have to force the
  2291. window to redraw
  2292.         // as if the update event was being processed now
  2293.         this->ScrollImageTo(0, 0, false);
  2294.         this->UpdatePort();
  2295.         this->SelectCell(theCell);
  2296.     }
  2297.     return (file_idx);
  2298. }
  2299.  
  2300.  
  2301. Wilson's Second Law
  2302.  
  2303. e raised to the infinity is greater than 4
  2304.  
  2305. +++++++++++++++++++++++++++
  2306.  
  2307. >From phenix@interpath.com (John Moreno)
  2308. Date: Tue, 5 Nov 1996 21:32:42 -0500
  2309. Organization: phenix@interpath.com
  2310.  
  2311. Mephisto <mwehner@lince.lander.es> wrote:
  2312.  
  2313. ] Dear Mac Programmers,
  2314. ]    I know this is a pretty stupid question but anyway... maybe there's
  2315. ] someone who can help me....
  2316. ] I want to create a shell-application similar to a UNIX input My
  2317. ] application should support the ls command...... (and cd and all that
  2318. ] stuff) The shell is not the problem, but: how do I get a list with the
  2319. ] contents of a folder? There HAS to be a function that gives me a list
  2320. ] of all items in a folder - maybe even one that tells me if that item
  2321. ] is a file or a folder! I tried to find some unix command - but there
  2322. ] doesn't seem to be one in my library I feel pretty stupid to be honest
  2323. ] - can you help me?
  2324. ] If you got some spare-time, could you please also send me some example
  2325. ] source-code? Just with this function!?!
  2326. ] (c++ would be best!)
  2327. ] Thank you very much!!
  2328. ]       Please send any answers, demos, flames or whatever to:
  2329. ] mwehner@lander.es
  2330.  
  2331. Look for MoreFiles 1.4 it can be used to do what you want, although
  2332. that's not a built in function.
  2333.  
  2334. --
  2335. John Moreno
  2336.  
  2337. +++++++++++++++++++++++++++
  2338.  
  2339. >From jumplong@aol.com
  2340. Date: 6 Nov 1996 04:01:48 GMT
  2341. Organization: America Online, Inc. (1-800-827-6364) (1.10)
  2342.  
  2343. Martin (mwehner@lince.lander.es) wrote:
  2344.  
  2345. >I want to create a shell-application similar to a UNIX input My
  2346. >application should support the ls command...... (and cd and all
  2347. >that stuff) The shell is not the problem, but:
  2348. >  how do I get a list with the contents of a folder? There HAS
  2349. >to be a function that gives me a list of all items in a folder -
  2350. >maybe even one that tells me if that item is a file or a folder!
  2351. >I tried to find some unix command - but there doesn't seem to be
  2352. >one in my library I feel pretty stupid to be honest - can you
  2353. >help me?
  2354.  
  2355. Get a copy of MoreFiles from
  2356. <ftp://members.aol.com/JumpLong/MoreFiles_1.4.3.sea.hqx> and use the
  2357. GetDirItems function.
  2358.  
  2359. - Jim Luther
  2360.  
  2361.  
  2362. +++++++++++++++++++++++++++
  2363.  
  2364. >From Conal Walsh <conal@ind.tansu.com.au>
  2365. Date: Wed, 6 Nov 1996 14:08:44 +1100
  2366. Organization: Telstra
  2367.  
  2368. On Sun, 3 Nov 1996, Mephisto wrote:
  2369.  
  2370. > Dear Mac Programmers,
  2371. >    I know this is a pretty stupid question but anyway... maybe there's
  2372. > someone who can help me....
  2373. > I want to create a shell-application similar to a UNIX input
  2374.  
  2375. Some time ago I wrote an app for 68k Macs to emulate an Applix 1616
  2376. environment. Ok, since most of the world has never heard of the "Applix
  2377. 1616", it was a 68000 based machine with a pre-emptive multitasking
  2378. environment rather like unix. I developed my Mac version to the point
  2379. where it understands most of the basic commands (ls, cd, etc) and can run
  2380. executables. GNU C runs under it, so you can port missing commands to it
  2381. if desired. The app ceased to work when I changed to a PPC, partly because
  2382. the PPC thread manager doesn't support pre-emptive threads, and partly
  2383. because the 68k emulator that comes with PPCs doesn't appear to emulate
  2384. TRAP instructions. Lemme know if you want the source.
  2385.  
  2386.  
  2387.   /||\     Conal Walsh
  2388.  / ||/     Correct Procedures Pty Ltd     Engineering and Consultancy
  2389.  \ ||      Sydney, Australia              Services for the
  2390.   \||      correct@mypostbox.com          Telecommunications Industry
  2391.  
  2392. "Some people live in the fast lane; I live in the oncoming traffic."
  2393.  
  2394.  
  2395. ---------------------------
  2396.  
  2397. >From jsoltys@woodinville.com (John Soltys)
  2398. Subject: [Q] why can't I write a short?
  2399. Date: Sun, 03 Nov 1996 12:26:41 -0800
  2400. Organization: The Edwards Agency
  2401.  
  2402. I'm trying to output a short to a text file using the following line:
  2403.  
  2404. myError = FSWrite (fileRef, &count, &curNode->selected[i]);
  2405.  
  2406. where fileRef is the reference of the already opened file, count = 1L, and
  2407. curNode->selected[i] is a pointer to an array of shorts in a struct.
  2408.  
  2409. I know the value of selected[i] is valid, but when I open the output file
  2410. I always wind up with a null character. Any ideas what's wrong?
  2411.  
  2412. +++++++++++++++++++++++++++
  2413.  
  2414. >From Greg Jorgensen <gregj@europa.com>
  2415. Date: Wed, 06 Nov 1996 21:48:17 -0800
  2416. Organization: europa communications inc.
  2417.  
  2418. Bob Bradley wrote:
  2419.  
  2420. [snip]
  2421.  
  2422. > A short is 2 bytes and FSWrite's count parameter is the count in bytes so
  2423. > you're telling it to write 1 byte. Try setting count to 2 instead of 1.
  2424.  
  2425. Better advice is to use sizeof(short) rather than hard-coding 2. A short
  2426. is two bytes on the Mac, but not everywhere. The size of a short integer
  2427. on every machine is sizeof(short).
  2428.  
  2429. -- 
  2430. Greg Jorgensen - Portland, Oregon, USA - gregj@europa.com
  2431.  
  2432. "Not only is there but one way of doing things rightly, but there is
  2433. only one way of seeing them, and that is seeing the whole of them." --
  2434. Ruskin
  2435.  
  2436. ---------------------------
  2437.  
  2438. >From raterwil@ucla.edu (Robert Terwilliger)
  2439. Subject: displaying a pixmap on screen
  2440. Date: 1 Nov 1996 21:04:36 GMT
  2441. Organization: UCLA Division of Brain Mapping
  2442.  
  2443. I am trying to display a pixmap on a mac screen.  I can't get it to look
  2444. the way I want it to.  It is a 128x128 pixel 8-bit grayscale MRI image
  2445. which appears fine when I display it on NIH image but I cannot get it to
  2446. display on my program.  Does anyone have experience reading in raw data
  2447. files (not picts, tiffs or other preformatted files) and displaying them
  2448. on the screen?
  2449.  
  2450. I do not know if I need to convert the image to 48-bit RGB before
  2451. displaying or what.  If anyone can help me, please let me know.  I can
  2452. forward you my code and explain exactly where the problem is.
  2453.  
  2454. I am using Code Warrior 9 and program in C.
  2455.  
  2456. Thank you.
  2457.  
  2458. Robert Terwilliger
  2459.  
  2460. +++++++++++++++++++++++++++
  2461.  
  2462. >From sauerzapf@mathematik.uni-kl.de (Oliver Sauerzapf)
  2463. Date: Sun, 03 Nov 1996 23:13:05 +0200
  2464. Organization: Brainworm Productions
  2465.  
  2466. In article <raterwil-0111961306040001@pawnx.loni.ucla.edu>,
  2467. raterwil@ucla.edu (Robert Terwilliger) wrote:
  2468.  
  2469. > I am trying to display a pixmap on a mac screen.  I can't get it to look
  2470. > the way I want it to.  It is a 128x128 pixel 8-bit grayscale MRI image
  2471. > which appears fine when I display it on NIH image but I cannot get it to
  2472. > display on my program.  Does anyone have experience reading in raw data
  2473. > files (not picts, tiffs or other preformatted files) and displaying them
  2474. > on the screen?
  2475. > I do not know if I need to convert the image to 48-bit RGB before
  2476. > displaying or what.  If anyone can help me, please let me know.  I can
  2477. > forward you my code and explain exactly where the problem is.
  2478. > I am using Code Warrior 9 and program in C.
  2479. > Thank you.
  2480. > Robert Terwilliger
  2481.  
  2482. Hi Robert,
  2483.  
  2484. 8-Bit color depth means, that a color lookup table is used.
  2485. You can display 256 different colors or grayscales at one time.
  2486. Every color( of the 256) has an index in the color lookup table
  2487. and a corresponding RGB value. Your picture is not using the
  2488. system color table. I gess that it has it's own.
  2489. This should be defined in the resouce "pltt" or"clut".
  2490. So you have to set the current color table with "SetPalette".
  2491.  
  2492. Bye Oliver
  2493.  
  2494. -- 
  2495. Don't forget !
  2496. Intel inside is a warning.
  2497.  
  2498. +++++++++++++++++++++++++++
  2499.  
  2500. >From jimmerkel@aol.com (Jim Merkel)
  2501. Date: 3 Nov 1996 16:16:38 -0500
  2502. Organization: America Online, Inc. (1-800-827-6364)
  2503.  
  2504. raterwil@ucla.edu (Robert Terwilliger) wrote:
  2505.  
  2506. >I am trying to display a pixmap on a mac screen.  I can't get it to look
  2507. >the way I want it to.  It is a 128x128 pixel 8-bit grayscale MRI image
  2508. >which appears fine when I display it on NIH image but I cannot get it to
  2509. >display on my program.  Does anyone have experience reading in raw data
  2510. >files (not picts, tiffs or other preformatted files) and displaying them
  2511. >on the screen?
  2512. >
  2513. >I do not know if I need to convert the image to 48-bit RGB before
  2514. >displaying or what.  If anyone can help me, please let me know.  I can
  2515. >forward you my code and explain exactly where the problem is.
  2516. >
  2517. >I am using Code Warrior 9 and program in C.
  2518. >
  2519. >Thank you.
  2520. >
  2521. >Robert Terwilliger
  2522.  
  2523. One approach is to create a GWorld with a depth of 8-bits. Attach a 256
  2524. entry grayscale color table to the GWorld. Load the GWorld Pixmap with
  2525. your grayscale image data (8 bits per pixel), then do a copybits to your
  2526. window. 
  2527.  
  2528. If you don't attach a color table to the GWorld, the system uses a default
  2529. color table which will probably not give you the results you want. The
  2530. grayscale color table that you want probably runs from black (0,0,0) in
  2531. the 0th location and then linearly increases to white (65535,  65535,
  2532. 65535) in the 255th location. The system grayscale color table (resource
  2533. ID = 40) runs in the opposite direction. If you use it, you will probably
  2534. get a negative of the image. In other words. you may have to make your own
  2535. grayscale color table. You can do that in ResEdit (it's a pain but can be
  2536. done).
  2537.  
  2538. Jim Merkel
  2539.   
  2540.  
  2541. +++++++++++++++++++++++++++
  2542.  
  2543. >From squires@crl.com (Scott Squires)
  2544. Date: Sun, 03 Nov 1996 14:32:33 -0800
  2545. Organization: Puffin Designs
  2546.  
  2547. In article <raterwil-0111961306040001@pawnx.loni.ucla.edu>,
  2548. raterwil@ucla.edu (Robert Terwilliger) wrote:
  2549.  
  2550. >I am trying to display a pixmap on a mac screen.  I can't get it to look
  2551. >the way I want it to.  It is a 128x128 pixel 8-bit grayscale MRI image
  2552. >which appears fine when I display it on NIH image but I cannot get it to
  2553. >display on my program.  Does anyone have experience reading in raw data
  2554. >files (not picts, tiffs or other preformatted files) and displaying them
  2555. >on the screen?
  2556. >
  2557. >I do not know if I need to convert the image to 48-bit RGB before
  2558. >displaying or what.  If anyone can help me, please let me know.  I can
  2559. >forward you my code and explain exactly where the problem is.
  2560. >
  2561.  
  2562. // untested psuedo code follows
  2563.  
  2564. // create a grayscale GWorld
  2565. CTabHandle theCTab;
  2566.     QDErr iErr;
  2567. GWorldPtr theGWorld;
  2568. Rect theRect;
  2569. SetRect(&theRect,0,0,128,128);
  2570.  
  2571.         theCTab = GetCTable(40);    // standard 8 bit gray
  2572.     iErr = NewGWorld(theGWorld,8,theRect,theCTab,0,0);
  2573.      DisposeCTable(theCTab);
  2574.  
  2575. PixMapHandle     srcPixMap = GetGWorldPixMap ( theGWorld );
  2576.       
  2577.     long srcRowBytes = (**srcPixMap).rowBytes & 0x3fff;            /* get the row
  2578. increment */
  2579.     srcBaseAddr = (long) GetPixBaseAddr ( srcPixMap );    /* get the address of
  2580. the pixmap */
  2581.  
  2582. for(y=0;y<128;y++)
  2583. {
  2584.  
  2585.  BlockMoveData(yourBuffer,srcBaseAddr,128);
  2586. srcBaseAddr += theRowBytes;
  2587.  
  2588. }
  2589.  
  2590. // now do a CopyBits to your window
  2591.  CopyBits((BitMap *) * (srcPixMap), &GrafPtr(yourWindowPort)->portBits,
  2592. &theRect
  2593.                                        , &theRect, srcCopy, 0);
  2594.  
  2595. -scott
  2596.  
  2597.  
  2598. Scott Squires               "Insert funny stuff here"
  2599. squires@crl.com
  2600. ScottSquir@aol.com
  2601.  
  2602.  
  2603. +++++++++++++++++++++++++++
  2604.  
  2605. >From <jcushing@grove.ufl.edu>
  2606. Date: Mon, 4 Nov 1996 11:50:56 -0500
  2607. Organization: University of Florida
  2608.  
  2609.  
  2610.  
  2611. On 3 Nov 1996, Jim Merkel wrote:
  2612.  
  2613. > raterwil@ucla.edu (Robert Terwilliger) wrote:
  2614. > >I am trying to display a pixmap on a mac screen.  I can't get it to look
  2615. > >the way I want it to.  It is a 128x128 pixel 8-bit grayscale MRI image
  2616. > >which appears fine when I display it on NIH image but I cannot get it to
  2617. > >display on my program.  Does anyone have experience reading in raw data
  2618. > >files (not picts, tiffs or other preformatted files) and displaying them
  2619. > >on the screen?
  2620. > >
  2621. > >I do not know if I need to convert the image to 48-bit RGB before
  2622. > >displaying or what.  If anyone can help me, please let me know.  I can
  2623. > >forward you my code and explain exactly where the problem is.
  2624. > >
  2625. > >I am using Code Warrior 9 and program in C.
  2626. > >
  2627. > >Thank you.
  2628. > >
  2629. > >Robert Terwilliger
  2630. >  The system grayscale color table (resource
  2631. > ID = 40) runs in the opposite direction. If you use it, you will probably
  2632. > get a negative of the image. In other words. you may have to make your own
  2633. > grayscale color table. You can do that in ResEdit (it's a pain but can be
  2634. > done).
  2635. > Jim Merkel
  2636.  
  2637. Couldn't hey also use the system grayscale table, then call InvertRect()?
  2638. This would avoid having to create a color table in ResEdit, or by other
  2639. means. 
  2640.  
  2641.  
  2642. +++++++++++++++++++++++++++
  2643.  
  2644. >From jimmerkel@aol.com
  2645. Date: 5 Nov 1996 05:14:29 GMT
  2646. Organization: America Online, Inc. (1-800-827-6364) (1.10)
  2647.  
  2648. jcushing@grove.ufl.edu wrote:
  2649.  
  2650. >>  The system grayscale color table (resource
  2651. >> ID = 40) runs in the opposite direction. If you use it, you will
  2652. probably
  2653. >> get a negative of the image. In other words. you may have to make your
  2654. own
  2655. >> grayscale color table. You can do that in ResEdit (it's a pain but can
  2656. be
  2657. >> done).
  2658. >> 
  2659. >> Jim Merkel
  2660.  
  2661. >Couldn't hey also use the system grayscale table, then call InvertRect()?
  2662. >This would avoid having to create a color table in ResEdit, or by other
  2663. >means. 
  2664.  
  2665. Yes, that's right. According to Inside Mac, for indexed color, Quickdraw
  2666. performs the inversion on the pixel indexes of the color table when you
  2667. call InvertRect(). Seems like there's always several ways to something on
  2668. the Mac.
  2669.  
  2670. Jim Merkel
  2671.  
  2672. ---------------------------
  2673.  
  2674. >From andi@concentric.net (andi jones)
  2675. Subject: resedit & PICT resources: help
  2676. Date: 5 Nov 1996 05:47:30 GMT
  2677. Organization: angelwerks
  2678.  
  2679. i am posting this to .games, .tools and .help, hoping someone can give me
  2680. a hand.
  2681.  
  2682. i am trying to learn how to edit (and make) PICT resource files. i have
  2683. resedit (v.2.1.3) and have borrowed two books on the subject, and i have
  2684. had no luck. i am not a programmer, so all i can do is follow instructions
  2685. in the book. they do not work.
  2686.  
  2687. can anyone point me to some decent, detailed instructions on editting and
  2688. making PICT resources? does anyone maintain a FAQ, or have a site on the
  2689. web i can visit? is there a book out there that simply outlines this
  2690. stuff? i don't know if this is complicated to do or not, but i am eager to
  2691. learn. any help anyone can offer would be much appreciated.
  2692.  
  2693. thanks.
  2694.  
  2695.  
  2696.  
  2697.  
  2698.  
  2699. end of line.
  2700.  
  2701. +++++++++++++++++++++++++++
  2702.  
  2703. >From slur@world.std.com (Scott Lahteine)
  2704. Date: Wed, 6 Nov 1996 01:52:47 GMT
  2705. Organization: Hot Eggs
  2706.  
  2707. In article <andi-0511960047520001@206.173.7.37>, andi@concentric.net (andi
  2708. jones) wrote:
  2709.  
  2710. >i am posting this to .games, .tools and .help, hoping someone can give me
  2711. >a hand.
  2712. >
  2713. >i am trying to learn how to edit (and make) PICT resource files. i have
  2714. >resedit (v.2.1.3) and have borrowed two books on the subject, and i have
  2715. >had no luck. i am not a programmer, so all i can do is follow instructions
  2716. >in the book. they do not work.
  2717. >
  2718.  
  2719.      Make a PICT by using any paint or image-editing program, save the
  2720. file as a .PICT, and use ResEdit to cut and paste the file's PICT resource
  2721. into your own.
  2722. -- 
  2723. - scott                             slur@world.std.com
  2724.  
  2725.        "A painting of a rice cake does not satisfy hunger."
  2726.  
  2727. +++++++++++++++++++++++++++
  2728.  
  2729. >From Keith Wiley <keithw@wam.umd.edu>
  2730. Date: Thu, 7 Nov 1996 08:16:43 -0500
  2731. Organization: University of Maryland, College Park, MD
  2732.  
  2733. > i am trying to learn how to edit (and make) PICT resource files. i have
  2734. > resedit (v.2.1.3) and have borrowed two books on the subject, and i have
  2735. > had no luck. i am not a programmer, so all i can do is follow instructions
  2736. > in the book. they do not work.
  2737. > can anyone point me to some decent, detailed instructions on editting and
  2738. > making PICT resources? does anyone maintain a FAQ, or have a site on the
  2739. > web i can visit? is there a book out there that simply outlines this
  2740. > stuff? i don't know if this is complicated to do or not, but i am eager to
  2741. > learn. any help anyone can offer would be much appreciated.
  2742.  
  2743. Use any paint program and paint the picture.  Select it and copy it.  Go
  2744. the ResEdit and make a new pict  resource.  Open the blank resource and
  2745. paste in you picture.  Voila.
  2746.  
  2747. . . .. ... ..... ........ ............. .....................
  2748. .. ... ..... ....... ........... ............. .................
  2749. . .. .... ........ ................ ................................
  2750. Keith Wiley, Electrogenetic Engineer             *
  2751. University of Maryland at College Park            *   * *     *   *      *
  2752. email:  keithw@wam.umd.edu                      ***    **   * *    **     *
  2753. world wide web:  http://www.wam.umd.edu/~keithw        *     **   **    ***
  2754.  
  2755.  
  2756.  
  2757.  
  2758. +++++++++++++++++++++++++++
  2759.  
  2760. >From m_denny@cs.utas.edu.au (Marcus Denny)
  2761. Date: Wed, 06 Nov 1996 12:43:14 +1000
  2762. Organization: University of Tasmania
  2763.  
  2764. In article <andi-0511960047520001@206.173.7.37>, andi@concentric.net (andi
  2765. jones) wrote:
  2766.  
  2767. > can anyone point me to some decent, detailed instructions on editting and
  2768. > making PICT resources? does anyone maintain a FAQ, or have a site on the
  2769. > web i can visit? is there a book out there that simply outlines this
  2770. > stuff? i don't know if this is complicated to do or not, but i am eager to
  2771. > learn. any help anyone can offer would be much appreciated.
  2772.  
  2773. Editing PICT resources is not too complicated - even SimpleText can cut
  2774. and paste selections of a PICT resource. You might want to try working
  2775. with ClarisWorks Draw or some other application like that to actually
  2776. create and edit PICTs. ResEdit is useful if you want to change PICT
  2777. resources in applications (eg. change a spaceship picture in a game).
  2778. Usual disclaimers about ResEdit - don't use it unless you know what you're
  2779. doing.
  2780.  
  2781. You can mail me if you want some more specific info.
  2782.  
  2783. Cheers,
  2784.    Marcus
  2785.  
  2786. m_denny@cs.utas.edu.au
  2787.  
  2788. ---------------------------
  2789.  
  2790. End of C.S.M.P. Digest
  2791. **********************
  2792.